Actions
Development #7128
openFeature #7125: Discount Engine (M05)
Build receipt-level discount action
Status:
New
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Complete Date:
Description
Refer to:
- docs/planning/modules/M05_Discount_Engine.md
- docs/planning/modules/M03_POS_Terminal_Cart.md
Implement discount against the overall receipt/cart.
Scope:
- Apply percentage or fixed-amount receipt discount.
- Validate user permission/approval where required.
- Validate maximum/permitted discount.
- Determine how receipt discount is allocated across eligible cart lines.
- Exclude ineligible lines where applicable.
- Recalculate receipt subtotal and final amount.
- Recalculate affected M04 taxable amounts.
- Record requesting/approving user and reason where required.
- Support removal/reversal of an applied receipt discount before payment.
Done when: A valid receipt-level discount can be applied and correctly distributed/recalculated across the cart.
Actions