The allowed maximum number of decimals for the Rounding amount (BT-114) is 2.
ram:RoundingAmount contains more than two characters after a decimal point. The test counts the characters after the first point, so a value with three decimal places violates the rule.
The rounding amount is a monetary amount and, under this rule, may have no more than two decimal places.
The rounding amount has more than two decimal places. You can adjust the value to the permitted precision.
- Check the value of
ram:RoundingAmount. - Make sure there are no more than two digits after the decimal point.
- Check the mapping to the
RoundingAmountproperty. - Generate the invoice again and validate it again.
<ram:RoundingAmount>0.456</ram:RoundingAmount>
<ram:RoundingAmount>0.46</ram:RoundingAmount>
FacturXInvoice.RoundingAmount(BT-114)
Technical details
In the ram:SpecifiedTradeSettlementHeaderMonetarySummation context, the rule checks whether the substring after the point in ram:RoundingAmount has a length of at most two.
The rule applies to ram:RoundingAmount within the invoice header monetary summation.
rule/@context)assert/@test)