Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).
The VAT total ram:TaxTotalAmount does not equal the sum of the ram:CalculatedAmount values in the ram:ApplicableTradeTax entries, rounded to two decimal places.
The total VAT amount (BT-110) must equal the sum of the VAT category tax amounts (BT-117).
The stated VAT total differs from the sum of the VAT amounts for each category. These values can be brought into agreement.
- Compare
ram:TaxTotalAmountwith theram:CalculatedAmountvalues inram:ApplicableTradeTax. - Check that the total equals their sum after rounding to two decimal places.
- Adjust the value using
FacturXInvoice.TaxTotalAmount. - Generate the invoice again and validate it.
<ram:TaxTotalAmount currencyID="EUR">20.00</ram:TaxTotalAmount> <ram:ApplicableTradeTax> <ram:CalculatedAmount>19.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount> <ram:ApplicableTradeTax> <ram:CalculatedAmount>19.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
FacturXInvoice.TaxTotalAmount(BT-110)
Technical details
The XPath sums the ram:CalculatedAmount values of all ram:ApplicableTradeTax elements, rounds the sum to two decimal places, and compares it with the context ram:TaxTotalAmount.
The rule applies to ram:TaxTotalAmount in the invoice currency within the settlement monetary totals and compares it with the amounts in the ram:ApplicableTradeTax entries.
rule/@context)assert/@test)