The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.
ram:DuePayableAmount contains more than two characters after the decimal point. The amount due may have no more than two decimal places.
BT-115 states the amount still payable for the invoice. Limiting it to two decimal places ensures that this monetary amount is expressed with the specified decimal precision.
The amount due in ram:DuePayableAmount has more than two decimal places. You can adjust the value in the invoice amount.
- Check the value of
FacturXInvoice.DuePayableAmount. - Enter the amount due with no more than two decimal places.
- Generate the invoice again and validate it again.
<ram:DuePayableAmount>123.456</ram:DuePayableAmount>
<ram:DuePayableAmount>123.45</ram:DuePayableAmount>
FacturXInvoice.DuePayableAmount(BT-115)
Technical details
The XPath counts the characters after the first period in ram:DuePayableAmount and allows no more than two.
The rule applies to ram:DuePayableAmount in the document-level monetary summation.
rule/@context)assert/@test)