Calculations and conditions (BR-CO)Error
BR-CO-17 VAT amount does not match rate and base
What BR-CO-17 means
In each VAT breakdown, the VAT amount (BT-117) must equal the taxable amount (BT-116) multiplied by the rate (BT-119) and divided by 100, rounded to two decimals.
Error: the invoice is not valid until this is fixed.
Common causes
- VAT was calculated per line and summed up, which can differ by a cent from base × rate.
- The rate or the taxable amount was changed after the VAT was calculated.
How to fix BR-CO-17
- Calculate the VAT per rate: taxable amount × rate / 100, rounded to two decimals.
- Use this value in the breakdown and in the total VAT amount (BR-CO-14).
- Create the invoice again and check the new file.
Where the fields are in the XML
BT-117VAT category tax amount- UBL
cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount
BT-116VAT category taxable amount- UBL
cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:BasisAmount
BT-119VAT category rate- UBL
cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent- CII
ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent
UBL paths start below the Invoice element. CII paths start below rsm:SupplyChainTradeTransaction unless they begin with rsm:.