The allowed maximum number of decimals for the Paid amount (BT-113) is 2.
The value of ram:TotalPrepaidAmount contains more than two decimal places. The rule counts the characters after a decimal point and allows no more than two.
The paid amount (BT-113) is a monetary amount limited to two decimal places.
The paid amount contains more than two decimal places. You can adjust the value in the paid amount field.
- Check the value of
ram:TotalPrepaidAmount. - Reduce or round the amount to no more than two decimal places.
- Set the value using
FacturXInvoice.TotalPrepaidAmount. - Generate the invoice again and validate it.
<ram:TotalPrepaidAmount>12.345</ram:TotalPrepaidAmount>
<ram:TotalPrepaidAmount>12.34</ram:TotalPrepaidAmount>
FacturXInvoice.TotalPrepaidAmount(BT-113)
Technical details
The XPath checks that the substring after . in ram:TotalPrepaidAmount is no longer than two characters.
The rule applies to the paid amount ram:TotalPrepaidAmount within the settlement monetary totals.
rule/@context)assert/@test)