The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.
If TaxCurrencyCode is present and TaxTotalAmount uses the same currency, the VAT amount has more than two decimal places. The rule does not apply when TaxCurrencyCode is absent.
The VAT amount in accounting currency is stated with no more than two decimal places. The currency match limits the check to the tax amount corresponding to the stated accounting currency.
The VAT amount in accounting currency has more than two decimal places. You can adjust the amount to the permitted decimal format.
- Check the
TaxTotalAmountwhosecurrencyIDmatchesTaxCurrencyCode. - Use no more than two decimal places for this VAT amount.
- Check the
TaxTotalAmountproperty or thetaxTotalInAccountingCurrencyparameter ofSetTaxCurrencyExchange(...). - Generate the invoice again and validate it again.
<ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">12.345</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">12.34</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
FacturXInvoice.TaxTotalAmountInAccountingCurrency(BT-111)FacturXInvoice.SetTaxCurrencyExchange(taxTotalInAccountingCurrency, accountingCurrency, conversionRate, conversionRateTimestamp)(taxTotalInAccountingCurrency: BT-111)
Technical details
The XPath check limits the decimal-place test to TaxTotalAmount whose currencyID matches TaxCurrencyCode. If TaxCurrencyCode is absent, the condition is satisfied.
The rule applies to TaxTotalAmount in SpecifiedTradeSettlementHeaderMonetarySummation when its currencyID matches TaxCurrencyCode.
rule/@context)assert/@test)