BR-CO-16fatal

How to fix BR-CO-16

Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) - Paid amount (BT-113) + Rounding amount (BT-114).

What this rule checks

This rule validates that the payable amount is correctly calculated from the tax-inclusive total, minus any prepaid amount, plus any rounding adjustment. It prevents the buyer from being asked to pay more or less than the correct amount. If your invoice has no prepayments or rounding, then PayableAmount must equal TaxInclusiveAmount exactly.

Referenced business terms

This rule references the following EN 16931 business terms. Click through for the full definition, the UBL XPath and the cardinality.

How to fix it

Recalculate <cbc:PayableAmount> = TaxInclusiveAmount − PrepaidAmount + PayableRoundingAmount. If no prepayment or rounding exists, PayableAmount must equal TaxInclusiveAmount.

Common causes

  • A prepaid amount (cbc:PrepaidAmount) is specified but was not subtracted from the payable amount.
  • The rounding amount was applied inconsistently.
  • PayableAmount was copied from TaxExclusiveAmount instead of TaxInclusiveAmount.
  • Multiple partial payments were recorded but the remaining balance was not updated.

Example: before (broken)

<cac:LegalMonetaryTotal>
  <cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
  <cbc:TaxInclusiveAmount currencyID="EUR">1210.00</cbc:TaxInclusiveAmount>
  <cbc:PrepaidAmount currencyID="EUR">200.00</cbc:PrepaidAmount>
  <cbc:PayableAmount currencyID="EUR">1210.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<!-- Error: 1210.00 - 200.00 = 1010.00, not 1210.00 -->

Example: after (fixed)

<cac:LegalMonetaryTotal>
  <cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
  <cbc:TaxInclusiveAmount currencyID="EUR">1210.00</cbc:TaxInclusiveAmount>
  <cbc:PrepaidAmount currencyID="EUR">200.00</cbc:PrepaidAmount>
  <cbc:PayableAmount currencyID="EUR">1010.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<!-- Correct: 1210.00 - 200.00 = 1010.00 -->

Related rules

Validate your invoice

Upload your corrected invoice to check it passes BR-CO-16 and all other EN 16931 and Peppol BIS 3.0 rules. Free, instant, no signup.