-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
- 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.
Attachments:
https://prnt.sc/Zi86YjEb-6T_