Bug #10210
openAddress the following issues related to the coupon module and project setup.
100%
Description
1. Fix Coupon Min/Max Order Amount Validation
Update the coupon validation logic based on the new business requirement.
Expected Behavior:
Coupon applies only if the order total is greater than or equal to the minimum amount and less than or equal to the maximum amount (when a maximum amount is configured).
Example:
Min Amount: 5
Max Amount: 99
Order Total: 50 → Coupon applied ✅
Order Total: 1000 → Coupon rejected ❌
maxAmount should represent the maximum eligible order amount, not the maximum discount amount.
If maxAmount is 0 or left empty, there should be no upper limit, while the minimum amount validation should still apply.
2. Fix Coupon Max Amount Issue
Investigate and resolve the issue where coupon validation is not working correctly with the configured maximum amount.
Verify all coupon scenarios after implementing the new validation logic.
3. Resolve Company Details Page Issue
Fix the issue raised on the Company Details page (Mahesh-raised issue).
Verify that the page functions correctly after the fix.
4. Local Database Setup
Complete the local database setup.
Verify that all coupon-related functionalities work correctly in the local environment.
Acceptance Criteria
Coupon validation follows the updated Min/Max Order Amount rules.
maxAmount is treated as the maximum order amount, not a discount cap.
Coupons work correctly when maxAmount is empty or set to 0.
Company Details page issue is resolved.
Local database is configured and functioning correctly.
All related coupon scenarios are tested and verified.
Subtasks
Related issues