Project

General

Profile

Actions

Development #7094

open

Feature #7092: Tax Calculation (M04)

Build POS tax calculation engine

Added by Kyle Chong 3 months ago. Updated 3 months ago.

Status:
New
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Complete Date:

Description

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 to M03.
  • Recalculate when quantity/price/cart information changes.
  • Apply defined decimal precision and rounding rules.
  • Do not embed 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.

Done when: M03 can submit a cart line to the tax engine and receive the correct taxable amount, tax component(s) and final amount.

Actions

Also available in: Atom PDF