Development #7094
Updated by Kyle Chong 3 months ago
Refer to: docs/planning/modules/M04_Tax_Calculation.md Implement a reusable tax calculation engine for M03 Cart/Checkout. Scope: * Determine applicable tax based on product/tax configuration. * Calculate tax per cart line. * Support tax-exclusive calculation. * Support tax-inclusive calculation. * Calculate taxable amount. * Calculate tax amount. * Return tax components back Tax Calculation (M04) (docs/planning/modules/M04_Tax_Calculation.md). Use saved TransactionLineTax rows to M03. * Recalculate when quantity/price/cart information changes. * Apply defined decimal precision print and rounding rules. * report each component separately, such as CGST, SGST, IGST or cess. Do not embed recalculate from current tax calculation directly inside the M03 UI/cart code. Expected concept: Cart Line → Tax Engine → Tax Result → Cart Line / Transaction The tax engine should return a structured result rather than only a final tax amount. master data when reprinting. Done when: M03 can submit a cart line to the when old receipts retain their original tax engine and receive the correct taxable amount, tax component(s) and final amount. breakdown.