Development #7127
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M05_Discount_Engine.md docs/planning/modules/M03_POS_Terminal_Cart.md Implement manual/controlled discount at individual cart-line level. Scope: * Select Discount Engine (M05) (docs/planning/modules/M05_Discount_Engine.md). Complete receipt-level manual discount: accept authorised code/amount/percent, allocate the target cart line. * Apply percentage or fixed-amount discount according to supported rules. * Validate user permission/approval where required. * Prevent invalid discount values. * Prevent discount greater than the permitted amount. * Recalculate line subtotal after discount. * Recalculate cart total. * Record who applied/approved the discount. * Record reason where required. * Ensure M04 tax calculation receives the correct discounted taxable base. across eligible lines, then recalculate tax. Done when: Cashier can apply an authorised line discount when allocation and the cart recalculates correctly with a full audit record. receipt total are reproducible from saved records.