The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.
ram:CalculatedAmount contains more than two digits after the decimal point. The VAT amount (BT-117) may have no more than two decimal places.
The two-decimal limit ensures consistent decimal precision for the VAT amount in the VAT breakdown.
The VAT amount in ram:CalculatedAmount has more than two decimal places. Reduce or round the value to no more than two decimal places.
- Check the value in
ram:CalculatedAmount. - Limit the decimal places to no more than two.
- Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CalculatedAmount>19.001</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>19.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
Technical details
The test counts the characters after the decimal point in ram:CalculatedAmount and permits no more than two.
The rule applies to ram:CalculatedAmount within each ram:ApplicableTradeTax in the invoice header settlement data.
rule/@context)assert/@test)