Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).
The value of ram:TaxTotalAmount differs from the sum of the ram:CalculatedAmount values in ram:ApplicableTradeTax, rounded to two decimal places. As a result, the invoice VAT total does not match the tax amounts for the VAT categories.
The invoice-level VAT total in the invoice currency must equal the sum of the VAT category tax amounts, rounded to two decimal places.
The invoice VAT total in the invoice currency does not match the sum of the category tax amounts. Adjust the values so they agree.
- Compare
ram:TaxTotalAmountwith theram:CalculatedAmountvalues inram:ApplicableTradeTax. - Add the category tax amounts and account for rounding to two decimal places.
- Check the value set through
TaxTotalAmount. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">19.01</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:ApplicableTradeTax> <ram:CalculatedAmount>10.00</ram:CalculatedAmount> </ram:ApplicableTradeTax> <ram:ApplicableTradeTax> <ram:CalculatedAmount>9.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:ApplicableTradeTax> <ram:CalculatedAmount>10.00</ram:CalculatedAmount> </ram:ApplicableTradeTax> <ram:ApplicableTradeTax> <ram:CalculatedAmount>9.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
FacturXInvoice.TaxTotalAmount(BT-110)
Technical details
The XPath compares the current ram:TaxTotalAmount with the sum of all ram:ApplicableTradeTax/ram:CalculatedAmount values in the invoice header. The sum is rounded to two decimal places before comparison.
The rule applies to ram:TaxTotalAmount whose currencyID matches ram:InvoiceCurrencyCode, within the invoice header monetary summation.
rule/@context)assert/@test)