Actions
Development #7129
openFeature #7125: Discount Engine (M05)
Build discount calculation engine & stacking rules
Status:
New
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Complete Date:
Description
Refer to: docs/planning/modules/M05_Discount_Engine.md
Implement the reusable discount calculation engine rather than embedding discount calculations directly in the Cart UI.
Scope:
- Calculate percentage discounts.
- Calculate fixed-amount discounts.
- Support line and receipt discount calculations.
- Support configured calculation sequence.
- Support multiple applicable discounts where allowed.
- Prevent combinations that are not allowed.
- Support mutually exclusive discount rules where required.
- Apply consistent rounding.
- Return structured discount results to M03.
- Keep the engine independent from UI and transport logic.
Expected concept:
Cart/Line โ Discount Engine โ Discount Result โ Cart Recalculation
Done when: M03 can pass cart/line data into the engine and receive a consistent, auditable discount result.
Actions