Support #10037
openFeature #10034: Evergreen Anniversary Sale Coupon Management in POS & Service Subscription
Coupon Application in Checkout
0%
Description
Coupons must be supported in the following checkout flows:
POS Billing
Service Subscription Checkout
Customers can enter or select a valid coupon code during checkout. The system will validate the coupon through the common Coupon Validation API before applying any discount.
Discount Calculation Logic
9. Discount Calculation Order
The coupon discount must always be applied before tax calculation.
Calculation Sequence:
Calculate the cart/subscription subtotal.
Validate the coupon.
Apply the coupon discount (Fixed Amount or Percentage).
Calculate the discounted subtotal.
Apply applicable taxes on the discounted subtotal.
Calculate the final payable amount.
Formula
Final Payable Amount = (Subtotal − Coupon Discount) + Tax
Example 1 – Fixed Amount Coupon
Description Amount
Cart Total $100.00
Coupon Discount -$10.00
Discounted Subtotal $90.00
Tax (7%) $6.30
Final Payable Amount $96.30
Example 2 – Percentage Coupon
Description Amount
Cart Total $200.00
Coupon Discount (20%) -$40.00
Discounted Subtotal $160.00
Tax (7%) $11.20
Final Payable Amount $171.20
Business Rules
Coupons must be applicable in both POS Billing and Service Subscription Checkout.
Coupon validation must occur before payment processing.
Only one coupon may be applied per transaction (unless future business rules allow coupon stacking).
Coupon discounts must always be calculated before tax.
Tax must be calculated on the discounted subtotal only.
The discount amount must never exceed the subtotal amount.
The system must display the following values in the checkout summary:
Subtotal (Regular/Product Discount )
Coupon Code
Discount Amount
Discounted Subtotal
Tax Amount
Final Payable Amount
The applied coupon details and discount amount must be stored with the completed POS sale or Service Subscription transaction for future reporting, auditing, and refund calculations.
Subtasks
Related issues