By Anant MishraDesign study
Five fictional AED records. A local decimal-arithmetic reference checks three selected totals relationships for tax-exclusive pricing. Full document, tax treatment and provider validation require separate evidence.
Design feature 01
5 synthetic records
Design feature 02
3 selected equations
Design feature 03
1 invoice currency
Executive Summary
Five invented AED records make three totals checks reproducible and isolate repeated allowances, omitted tax and payment deductions.
Architectural Deep Dive
Design study. A fictional UAE trading business is preparing an ERP invoice export. Finance wants to trace line amounts, document adjustments, tax and a recorded payment into the amount due. The proposed first workshop uses five invented AED records. It focuses on three totals relationships before the team rehearses the complete provider integration with authorised invoice data.
Freeze the exercise boundary
All examples use tax-exclusive pricing and one invoice currency. Each input amount has at most two decimal places. Allowance, charge, paid and rounding values are explicitly supplied, including zero where appropriate. The fictional tax amount is an input to the bridge, with tax categories and rate selection outside the local exercise. These choices make the calculation easy to inspect while keeping its scope visible.
The source review checked OpenPeppol’s PINT-AE invoice transaction page on 19 November 2026. It identifies PDK 1.4.4, released on 29 July 2026. The Ministry of Finance portal describes the broader exchange and validation model. An operational release would need the specification and provider requirements applicable to the actual implementation.
Give each bridge a separate finding
The baseline starts with two line net amounts of AED 1,000 and AED 500. It subtracts a document allowance of AED 100 and adds a document charge of AED 20, giving AED 1,420 without tax. Adding the supplied AED 71 tax gives AED 1,491. After a paid amount of AED 500 and a positive rounding adjustment of AED 0.01, the expected amount due is AED 991.01.
The verifier evaluates relationships corresponding to IBR-CO-13, IBR-CO-15 and IBR-CO-16 within the declared boundary. For each relationship it records the observed total, expected total and observed-minus-expected difference. It evaluates each against the supplied fields so a downstream finding does not silently replace the underlying input.
The first two published rule tests include a tax-inclusive-pricing branch. The local code rejects a fixture that asks for that pricing convention. It is an arithmetic reference for the selected examples. A full validation run requires the complete document, applicable rules and the actual validation engine.
Make each mistake distinguishable
In the repeated-allowance example, the reported total without tax is AED 1,320. Its later totals are internally consistent with that reported value. This isolates the first bridge. The checker reports a difference of minus AED 100 for the without-tax total, and the other two relationships agree with their supplied inputs. A reviewer can follow the allowance into the first discrepancy.
The omitted-tax example keeps AED 1,420 as the total without tax and supplies AED 71 tax, but also reports AED 1,420 as the total including tax. It carries that reported value into the amount due. The checker flags minus AED 71 at the tax-addition bridge. The final equation still balances against the reported inclusive amount. This shows why every relationship needs its own finding.
The missing-payment-deduction example reports AED 1,491.01 due. The baseline inputs still include the AED 500 already paid, so the amount due is overstated by AED 500. A fifth example changes the rounding adjustment to minus AED 0.01 and reports AED 990.99 due. All three equations agree in that case. This checks the sign convention on the chosen two-decimal inputs.
Preserve the source of the totals
The fictional fixture, offline verifier and reproduction guide can be saved together. The Python code uses exact decimal arithmetic and requires no external packages or credentials. An execution record retains source and input hashes, actual run time and the reproduced findings.
A later ERP workshop would add a trace from each fixture field to the source extract and mapped document. Retain which component produced each amount and who can correct it. If a mapping change resolves one example, run the rest again to check whether it moved a different total. The acceptance discussion should also cover fields absent from these small fixtures, including identities, tax details, currencies and document references.
Use the result at its tested scope
The local execution reproduced the expected findings for five synthetic records. Operational readiness still requires complete XML validation, all applicable shared and UAE rules, correct tax treatment, actual provider responses and the business’s evidence-retention process. The companion essay explains how to organise the finance review. The readiness checklist supplies the broader implementation context.
Proposed approach
- Scope
- Tax-exclusive AED inputs with at most two decimal places
- Evidence
- Expected totals, signed differences and an offline execution record
Sources
- UAE eInvoicing portal — UAE Ministry of Finance; checked 19 November 2026
- Invoice Transaction — PDK 1.4.4, released 29 July 2026 — OpenPeppol PINT-AE documentation; checked 19 November 2026
- IBR-CO-13 — OpenPeppol PINT-AE documentation; checked 19 November 2026
- IBR-CO-15 — OpenPeppol PINT-AE documentation; checked 19 November 2026
- IBR-CO-16 — OpenPeppol PINT-AE documentation; checked 19 November 2026
Related reading
Read the publishing standards or suggest a correction.