The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.
ram:TaxBasisTotalAmount contains more than two characters after the decimal point. The amount without VAT therefore exceeds the permitted number of decimal places.
The invoice total amount without VAT may have no more than two decimal places. This keeps its stated precision within the limit set for this amount.
ram:TaxBasisTotalAmount has more than two decimal places. Adjust the value so that no more than two digits follow the decimal point.
- Check the value of
ram:TaxBasisTotalAmount. - Limit the decimal places to no more than two.
- Check the value of
TaxBasisAmount. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxBasisTotalAmount>100.123</ram:TaxBasisTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:TaxBasisTotalAmount>100.12</ram:TaxBasisTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
FacturXInvoice.TaxBasisAmount(BT-109)
Technical details
The test counts the characters after the first decimal point in ram:TaxBasisTotalAmount and requires a length of no more than two.
The rule checks ram:TaxBasisTotalAmount in the totals of ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)