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