The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.
The value in ChargeTotalAmount has more than two decimal places.
The total of document-level charges is stated with no more than two decimal places. This ensures a consistent decimal format for this monetary amount.
The document-level charges total has more than two decimal places. You can adjust the value to the permitted decimal format.
- Check the value of
ChargeTotalAmount. - Use no more than two decimal places.
- Check the
ChargeTotalAmountproperty. - Generate the invoice again and validate it again.
<ram:ChargeTotalAmount>12.345</ram:ChargeTotalAmount>
<ram:ChargeTotalAmount>12.34</ram:ChargeTotalAmount>
FacturXInvoice.ChargeTotalAmount(BT-108)
Technical details
The XPath check counts the characters after the decimal point in ChargeTotalAmount and allows at most two.
The rule applies to ChargeTotalAmount in SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)