BR-CO-13: Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of…
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-CO-13]-Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).
((cbc:ChargeTotalAmount) and (cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) + xs:decimal(cbc:ChargeTotalAmount) - xs:decimal(cbc:AllowanceTotalAmount)) * 10 * 10) div 100 )) or (not(cbc:ChargeTotalAmount) and (cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) - xs:decimal(cbc:AllowanceTotalAmount)) * 10 * 10 ) div 100)) or ((cbc:ChargeTotalAmount) and not(cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) + xs:decimal(cbc:ChargeTotalAmount)) * 10 * 10 ) div 100)) or (not(cbc:ChargeTotalAmount) and not(cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = xs:decimal(cbc:LineExtensionAmount)))BR-CO-13 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BT-109, BT-131, BT-107, BT-108.
What this rule requires
The rule BR-CO-13 requires that the invoice total amount without VAT (BT-109) equals the invoice line net amount total (BT-131) minus document-level allowances (BT-107) plus document-level charges (BT-108), rounded to two decimal places. The test checks the applicable equation based on which of cbc:ChargeTotalAmount and cbc:AllowanceTotalAmount are present, and the document fails if cbc:TaxExclusiveAmount does not match the expected rounded value.
How to fix
Verify that the value in cbc:TaxExclusiveAmount (or ram:TaxBasisTotalAmount in CII) equals the sum of cbc:LineExtensionAmount minus cbc:AllowanceTotalAmount (if present) plus cbc:ChargeTotalAmount (if present), rounded to two decimals. Correct any of these amounts so the equation holds.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to BR-CO-13.
Validate an invoice against these rules · All release changes