-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: prevented updating negative inventory counts (#207) #228
Conversation
This reverts commit 466b8ce.
…ad Page(hotwax#209)" This reverts commit 1c1f41a.
…ad Page(hotwax#213)" This reverts commit 2dce920.
src/views/count.vue
Outdated
} else { | ||
} else if(this.quantity < 0) { | ||
showToast(translate("Negative stock count cannot be accepted")) | ||
}else{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve spacing here
src/locales/en.json
Outdated
@@ -31,6 +31,7 @@ | |||
"Logging out": "Logging out", | |||
"Logout": "Logout", | |||
"Make sure you've reviewed the products and their counts before uploading them for review": "Make sure you've reviewed the products and their counts before uploading them for review", | |||
"Neagative stock count cannot be accepted":"Neagative stock count cannot be accepted", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please recheck the spellings
@@ -216,7 +216,7 @@ | |||
await picker.present(); | |||
}, | |||
updateProductInventoryCount() { | |||
if (this.quantity) { | |||
if (this.quantity > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this.quantity > 0) { | |
if(this.quantity > 0) { |
src/locales/en.json
Outdated
@@ -31,6 +31,7 @@ | |||
"Logging out": "Logging out", | |||
"Logout": "Logout", | |||
"Make sure you've reviewed the products and their counts before uploading them for review": "Make sure you've reviewed the products and their counts before uploading them for review", | |||
"Negative stock count cannot be accepted":"Negative stock count cannot be accepted", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Negative stock count cannot be accepted":"Negative stock count cannot be accepted", | |
"Negative stock count cannot be accepted": "Negative stock count cannot be accepted", |
src/views/count.vue
Outdated
@@ -216,7 +216,7 @@ | |||
await picker.present(); | |||
}, | |||
updateProductInventoryCount() { | |||
if (this.quantity) { | |||
if(this.quantity) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have not handled negative check in this case, and also we have added static text entry in locale but have added the toast anywhere
Closing as having conflicts and needs improvements. |
#207
Closes #
Short Description and Why It's Useful
Screenshots of Visual Changes before/after (If There Are Any)
Contribution and Currently Important Rules Acceptance