A UBL invoice import produces Arithmetical issue, although another validator accepts the document. The target amount may differ by a discount or charge. An original Mustang report describes this situation involving document-level allowances and charges. Q1 The warning alone establishes neither an incorrect source invoice nor a particular importer defect.
Separate calculation stages
The pre-tax document total reconciles line net amounts, document allowances and document charges. Peppol rule BR-CO-13 describes that relationship. Q2 Amount due instead starts with the tax-inclusive total and accounts for paid amounts and any stated rounding. Q3 These two stages must not be mixed together.
Trace one amount from source to destination
- Preserve the same document version. Keep the XML, import warning and target values linked by a hash or unambiguous reference. Check whether a preview displays a different export from the bytes actually imported.
- Record the pre-tax stage. Read
LineExtensionAmount,AllowanceTotalAmount,ChargeTotalAmountandTaxExclusiveAmountwithinLegalMonetaryTotal. Mark absent optional fields explicitly instead of substituting an old displayed value. - Identify the allowance level. Distinguish line-level adjustments from document-level adjustments. A discount already included in a line net amount must not be deducted again as a document allowance. In a simple control example, line net 100 minus document allowance 10 plus document charge 5 gives a pre-tax total of 95.
- Reconcile amount due separately. Compare
TaxInclusiveAmount,PrepaidAmount,PayableRoundingAmountandPayableAmountunder the intended rule profile. Check currency and signs. A rounding adjustment must not conceal failure to import an entire allowance. - Compare XML with the import model. If the source values reconcile, establish whether the importer actually transfers document adjustments into its objects. If they exist there but the result is wrong, inspect the target calculation. If the source XML already omits them, correct the exporter instead.
Verify with meaningful examples
Test an invoice without document adjustments, one with an allowance, one with a charge and one containing both. Do not check only whether the warning disappears: compare all imported totals with the respective source. Record both validator and importer versions so that later changes remain interpretable.
For handoff, provide sanitised total fields, the relevant allowance/charge location and the target amount. The underlying commercial agreement remains authoritative for the intended prices. This guide investigates the technical representation and does not approve tax treatment or the invoice's legal status.
Frequently asked questions
Can I ignore the warning if the XML is valid?
A valid source does not automatically prove correct transfer into the target system. Compare the values actually stored there.
Is every discount a document allowance?
No. Its level and any effect already included in other amounts must be established from the specific invoice.
Prepare a findings note
Summarise your observations for your enquiry. The note is created in your browser and is not saved or sent here. You can then copy it into the contact form.
Unknown is fine. Do not enter passwords, customer data or complete confidential logs.
Support with this issue
We can reconcile UBL locations, imported totals and the target system’s calculation.
