The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.
ChargeTotalAmount contains more than two digits after the decimal separator.
The sum of document-level charges may have no more than two decimal places.
ChargeTotalAmount has more decimal places than allowed for the document-level charge total. You can adjust the amount to no more than two decimal places.
- Check the value of
ChargeTotalAmount. - Limit it to no more than two decimal places.
- Check the
ChargeTotalAmountproperty. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:ChargeTotalAmount>12.345</ram:ChargeTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:ChargeTotalAmount>12.34</ram:ChargeTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
FacturXInvoice.ChargeTotalAmount(BT-108)
Technical details
The XPath counts the characters after the decimal point in ChargeTotalAmount and allows no more than two.
The rule applies to ChargeTotalAmount, the sum of document-level charges in SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)