The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2.
ram:GrandTotalAmount contains more than two characters after the decimal point. The invoice total amount with VAT therefore exceeds the permitted number of decimal places.
The invoice total amount with VAT may have no more than two decimal places. This keeps its stated precision within the limit set for this amount.
ram:GrandTotalAmount 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:GrandTotalAmount. - Limit the decimal places to no more than two.
- Check the value of
GrandTotalAmount. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:GrandTotalAmount>119.123</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:GrandTotalAmount>119.12</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
FacturXInvoice.GrandTotalAmount(BT-112)
Technical details
The test counts the characters after the first decimal point in ram:GrandTotalAmount and requires a length of no more than two.
The rule checks ram:GrandTotalAmount in the totals of ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)