HomeError code lexicon › BR-CO-16
BR-CO-16 Field BT-115 Calculation and consistency rules (BR-CO)

Fix BR-CO-16: Amount due for payment (BT-115) does not add up

[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114)

BR-CO-16 in your own invoice? Upload the file and find every error in seconds.

What does BR-CO-16 mean?

The amount due for payment must equal gross minus prepaid amount plus rounding amount. The rule checks this calculation.

Common causes of BR-CO-16

How to fix BR-CO-16

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-115 along this XPath://ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:DuePayableAmount
  2. Apply the fix. The amount due for payment (BT-115, 'ram:DuePayableAmount') must result from the gross amount minus the amount already paid plus the rounding amount. Formula: BT-115 = BT-112 (gross) - BT-113 (prepaid amount, 'ram:TotalPrepaidAmount') + BT-114 (rounding amount, 'ram:RoundingAmount'). The wrong value is in 'ram:DuePayableAmount' - recalculate it.
  3. Validate again. Save the file and validate it again to check that BR-CO-16 is no longer reported.
Concrete fix

The amount due for payment (BT-115, 'ram:DuePayableAmount') must result from the gross amount minus the amount already paid plus the rounding amount. Formula: BT-115 = BT-112 (gross) - BT-113 (prepaid amount, 'ram:TotalPrepaidAmount') + BT-114 (rounding amount, 'ram:RoundingAmount'). The wrong value is in 'ram:DuePayableAmount' - recalculate it.

XPath//ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:DuePayableAmount

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:GrandTotalAmount>1190.00</ram:GrandTotalAmount>
<ram:TotalPrepaidAmount>100.00</ram:TotalPrepaidAmount>
<ram:DuePayableAmount>1190.00</ram:DuePayableAmount>
Correct
<ram:GrandTotalAmount>1190.00</ram:GrandTotalAmount>
<ram:TotalPrepaidAmount>100.00</ram:TotalPrepaidAmount>
<ram:DuePayableAmount>1090.00</ram:DuePayableAmount>

Frequent questions about BR-CO-16

Why does my amount due differ from the gross amount?
If a prepaid amount (BT-113) or a rounding amount (BT-114) is stated, the amount due (BT-115) is not equal to the gross amount. The rule is BT-115 = BT-112 - BT-113 + BT-114.
Where do I enter a prepayment in the CII XML?
In 'ram:TotalPrepaidAmount' (BT-113) inside 'ram:SpecifiedTradeSettlementHeaderMonetarySummation'. Then reduce the amount due BT-115 by that amount.

Related error codes

Check BR-CO-16 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice