Calculations and conditions (BR-CO)Error
BR-CO-16 Amount due does not add up
What BR-CO-16 means
The amount due for payment (BT-115) must equal the total with VAT (BT-112) minus the paid amount (BT-113) plus the rounding amount (BT-114).
Error: the invoice is not valid until this is fixed.
Common causes
- A prepayment was subtracted from the amount due but not entered as paid amount.
- The amount due was entered by hand or copied from another document.
- The total with VAT changed after the amount due was set.
How to fix BR-CO-16
- Calculate BT-112 − BT-113 + BT-114 and use the result as BT-115.
- Enter prepayments as paid amount (BT-113).
- Create the invoice again and check the new file.
Where the fields are in the XML
BT-115Amount due for payment- UBL
cac:LegalMonetaryTotal/cbc:PayableAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:DuePayableAmount
BT-112Invoice total amount with VAT- UBL
cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount
BT-113Paid amount- UBL
cac:LegalMonetaryTotal/cbc:PrepaidAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TotalPrepaidAmount
BT-114Rounding amount- UBL
cac:LegalMonetaryTotal/cbc:PayableRoundingAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:RoundingAmount
UBL paths start below the Invoice element. CII paths start below rsm:SupplyChainTradeTransaction unless they begin with rsm:.