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