The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2.
ram:TaxTotalAmount has more than two decimal places even though its currencyID matches ram:InvoiceCurrencyCode. This decimal-place check does not apply when the currency differs from the invoice currency or when ram:TaxTotalAmount is absent.
The VAT amount in the invoice currency may have no more than two decimal places. The rule applies this limit only when the amount’s currency matches the invoice currency.
The VAT amount in the invoice currency has more than two decimal places. Limit the decimal places of ram:TaxTotalAmount to no more than two.
- Check
ram:TaxTotalAmountand itscurrencyIDagainstram:InvoiceCurrencyCode. - When the currencies match, limit the decimal places of
ram:TaxTotalAmountto no more than two. - Check the value of
TaxTotalAmount. - Generate the invoice again and validate it again.
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction> <ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1.234</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement> </rsm:SupplyChainTradeTransaction> </rsm:CrossIndustryInvoice>
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction> <ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> <ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxTotalAmount currencyID="EUR">1.23</ram:TaxTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation> </ram:ApplicableHeaderTradeSettlement> </rsm:SupplyChainTradeTransaction> </rsm:CrossIndustryInvoice>
FacturXInvoice.TaxTotalAmount(BT-110)
When currencyID differs from the invoice currency, this test does not check the two-decimal-place limit.
Technical details
The test passes if ram:TaxTotalAmount is absent, if its currency matches the invoice currency and its value is unchanged when rounded to two decimal places, or if its currency differs from the invoice currency.
The rule checks ram:TaxTotalAmount in ram:SpecifiedTradeSettlementHeaderMonetarySummation and compares its currencyID with ram:InvoiceCurrencyCode.
rule/@context)assert/@test)