Skip to content
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

Closed
wants to merge 12 commits into from

Conversation

shanmukhdutt
Copy link
Contributor

@shanmukhdutt shanmukhdutt commented Dec 8, 2023

#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

@shanmukhdutt shanmukhdutt changed the title Fixed: Prevented Updating Negative Inventory Counts Fixed: Prevented Updating Negative Inventory Counts(#207) Dec 8, 2023
} else {
} else if(this.quantity < 0) {
showToast(translate("Negative stock count cannot be accepted"))
}else{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve spacing here

@@ -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",
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (this.quantity > 0) {
if(this.quantity > 0) {

@@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Negative stock count cannot be accepted":"Negative stock count cannot be accepted",
"Negative stock count cannot be accepted": "Negative stock count cannot be accepted",

@@ -216,7 +216,7 @@
await picker.present();
},
updateProductInventoryCount() {
if (this.quantity) {
if(this.quantity) {
Copy link
Contributor

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

@shanmukhdutt shanmukhdutt changed the title Fixed: Prevented Updating Negative Inventory Counts(#207) Fixed: prevented updating negative inventory counts (#207) Feb 14, 2024
@ymaheshwari1
Copy link
Contributor

Closing as having conflicts and needs improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants