Rules › official › ibr-147-ae
Official rule ibr-147-ae
The invoice line net amount must equal quantity x item net price, after any line-level allowances and charges, rounded to two decimals.
Why it exists
Line arithmetic is the foundation the document totals are checked against. If a line does not reconcile, every total above it is unverifiable, so this is caught at the line rather than at the bottom of the document.
Common causes
- Rounding the unit price for display and then multiplying the rounded value
- Applying a line discount to the amount but not reflecting it in the allowance element
- Floating-point accumulation — 0.1 + 0.2 arithmetic reaching the serializer without a decimal type
- Price base quantity ignored: a price quoted per 100 units multiplied as if it were per unit
Fix
Compute line amounts with a fixed-point decimal type, round once at the end, and let the rounded value be the one you serialize.
Explanation reviewed in PeppolProbe against the official PINT AE rule-pack.