The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.
The value in ram:CalculatedAmount has more than two digits after the decimal point. The tax amount in the VAT breakdown may have no more than two decimal places.
The tax amount in a VAT breakdown is represented as a monetary amount with no more than two decimal places.
The VAT amount in ram:CalculatedAmount has too many decimal places. You can limit the value to no more than two decimal places.
- Find the relevant VAT breakdown
ram:ApplicableTradeTax. - Check the value in
ram:CalculatedAmount. - Enter the tax amount with no more than two decimal places.
- Generate the invoice again and validate it again.
<ram:ApplicableTradeTax> <ram:CalculatedAmount>12.345</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>12.34</ram:CalculatedAmount> </ram:ApplicableTradeTax>
Technical details
The test checks the length of the text after the period in ram:CalculatedAmount; no more than two characters are allowed.
The rule applies to the tax amount ram:CalculatedAmount in each document-level VAT breakdown ram:ApplicableTradeTax.
rule/@context)assert/@test)