Development #7104
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/modules/M06_Payment_Tender.md * docs/planning/modules/M10_Cash_Movement.md Implement Cash as an M06 Payment & Tender (M06) (docs/planning/modules/M06_Payment_Tender.md). On Confirm Payment, create one immutable transaction in Transactions.db with header, item lines, tax lines, applied discounts, tender type. Scope: * Accept tendered amount. * Validate tender amount. * Calculate change. * Record paid amount lines and change. * Return successful Cash payment result to M03. * After successful completion, create/trigger EFT detail where applicable. Copy product name/SKU/price/tax/discount values into the applicable sale-related cash movement under M10. * Use Cash Drawer configuration from M16 where drawer operation is required. * Do ledger; do not implement drawer ledger/reconciliation logic inside M06. Expected flow: M06 Cash Tender → Payment Success → M03 Complete Sale → M10 Sale Cash Movement point receipts back to current master data. Done when: A Cash when the sale calculates can be reprinted after the correct change, completes successfully, and results in the appropriate M10 cash movement. product changes.