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

  1. Calculate the VAT per rate: taxable amount × rate / 100, rounded to two decimals.
  2. Use this value in the breakdown and in the total VAT amount (BR-CO-14).
  3. Create the invoice again and check the new file.

Where the fields are in the XML

  • BT-117 VAT category tax amount

    UBL
    cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount
    CII
    ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount
  • BT-116 VAT category taxable amount

    UBL
    cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount
    CII
    ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:BasisAmount
  • BT-119 VAT 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:.

Based on the EN 16931 business rules (CEN/TC 434) and the XRechnung 3.0 rules published by KoSIT. This page explains the rules in plain language and is not legal or tax advice.