Development #7126
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M05_Discount_Engine.md Implement Discount Engine (M05) (docs/planning/modules/M05_Discount_Engine.md). Complete the common discount structures used by line-discount interaction: select one cart line, accept allowed code/amount/percent, enforce permission, then recalculate tax and line total. Done when only the POS+ discount engine. Scope: * Support discount type. * Support percentage discount. * Support fixed-amount discount. * Support line-level discount. * Support receipt-level discount. * Support active/inactive status. * Support effective date/time where required. * Support applicable product/category/store conditions where required. * Support priority/sequence where multiple discounts are applicable. * Define rounding behaviour. * Define whether discounts can be combined/stacked. * Keep the model generic so future promotion rules can extend it without redesigning M03. Done when: POS+ has a reusable discount rule/result model that can support both chosen line changes and receipt discount processing. the action is auditable.