15% VAT & Halala Price Parity in Odoo
Accounting mechanics for net price extraction from tax-inclusive checkouts, halala rounding parity, and zero-rated exports.
The Tax-Inclusive Rounding Challenge
In Saudi Arabia, e-commerce regulations mandate displaying prices inclusive of 15% VAT to retail consumers.
However, ERP systems like Odoo standardly compute invoices by multiplying net unit prices by tax percentages. This rounding discrepancy frequently causes a one-halala variance (±0.01 SAR) between store checkouts and ERP invoice totals, risking ZATCA compliance rejections.
Mathematical Net Extraction
ERP Link implements an authoritative tax reconciliation algorithm (tests/unit/zid-inclusive-invoice-parity.test.ts):
$$\text{Net Unit Price} = \frac{\text{Gross Item Price}}{1 + \text{Tax Rate (0.15)}}$$
Calculated up to 4 decimal precision points, ensuring the final generated Odoo invoice matches customer checkout totals down to the halala.
Draft Invoice Parity Reconciliation
When compiling customer invoices:
- Net tax bases are computed across individual line items.
- Shipping fees and COD surcharges are taxed appropriately.
- The invoice total is reconciled against the storefront checkout. Fractional 0.01 SAR variances are automatically resolved on adjustment lines.
International Orders & Zero-Rated Exports
For cross-border export shipments:
- The engine evaluates the destination address (
isSaudiShippingAddress). - Non-domestic deliveries automatically map to export tax configurations (0% Zero-Rated VAT) in compliance with regional tax authority directives.
Encountered an issue applying this guide?
Open a support ticket to have our engineering desk inspect logs directly.