You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inappropriate Validation Allows Negative Price in Product Creation
Issue Description
During the creation of a product, the Price field in the Price Section accepts negative values. This behavior is incorrect, as price values should always be positive or zero (for free products). Proper validation is required to restrict negative values.
Steps to Reproduce
Navigate to Admin -> Products -> Create Products.
Enter a negative value in the Price field under the Price Section.
Save the product.
Expected Result
The system should display a validation error message when a negative value is entered in the Price field, preventing the product from being saved.
Actual Result
The product gets saved with a negative price without any validation error.
Acceptance Criteria
Implement validation to restrict negative values in the Price field.
Display a clear error message if a negative value is entered.
Ensure backward compatibility and test other price-related fields for similar issues.
Bug Report
Title
Inappropriate Validation Allows Negative Price in Product Creation
Issue Description
During the creation of a product, the Price field in the Price Section accepts negative values. This behavior is incorrect, as price values should always be positive or zero (for free products). Proper validation is required to restrict negative values.
Steps to Reproduce
Expected Result
The system should display a validation error message when a negative value is entered in the Price field, preventing the product from being saved.
Actual Result
The product gets saved with a negative price without any validation error.
Acceptance Criteria
Attachments:
https://prnt.sc/Zi86YjEb-6T_
The text was updated successfully, but these errors were encountered: