What does BR-CO-17 mean?
The tax amount of a VAT breakdown must be the taxable amount times the rate. The rule checks this calculation.
Common causes of BR-CO-17
- The VAT amount (BT-117) was set by hand and does not match base times rate.
- The VAT rate (BT-119) in the breakdown does not match the percentage used.
- Rounding was not done half-up to two decimal places.
How to fix BR-CO-17
- Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-117 along this XPath:
//ram:ApplicableTradeTax/ram:CalculatedAmount - Apply the fix. The VAT category tax amount of a VAT breakdown (BT-117, 'ram:CalculatedAmount') must be calculated from the taxable amount times the rate. Formula: BT-117 = BT-116 (base, 'ram:BasisAmount') x (BT-119 (rate, 'ram:RateApplicablePercent') / 100), rounded half-up to two decimal places. The wrong value is in 'ram:CalculatedAmount' of the affected 'ram:ApplicableTradeTax' group.
- Validate again. Save the file and validate it again to check that BR-CO-17 is no longer reported.
The VAT category tax amount of a VAT breakdown (BT-117, 'ram:CalculatedAmount') must be calculated from the taxable amount times the rate. Formula: BT-117 = BT-116 (base, 'ram:BasisAmount') x (BT-119 (rate, 'ram:RateApplicablePercent') / 100), rounded half-up to two decimal places. The wrong value is in 'ram:CalculatedAmount' of the affected 'ram:ApplicableTradeTax' group.
//ram:ApplicableTradeTax/ram:CalculatedAmountBefore / after: the XML example
This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).
<ram:ApplicableTradeTax>
<ram:CalculatedAmount>200.00</ram:CalculatedAmount>
<ram:BasisAmount>1000.00</ram:BasisAmount>
<ram:RateApplicablePercent>19</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:ApplicableTradeTax>
<ram:CalculatedAmount>190.00</ram:CalculatedAmount>
<ram:BasisAmount>1000.00</ram:BasisAmount>
<ram:RateApplicablePercent>19</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
Frequent questions about BR-CO-17
How is the VAT amount per breakdown rounded?
Does BR-CO-17 apply per tax rate or to the whole invoice?
Related error codes
Check BR-CO-17 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.