VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.
For a tax type of VAT, ram:CalculatedAmount does not match ram:BasisAmount multiplied by ram:RateApplicablePercent and rounded to two decimal places. If no rate is present for VAT, the rounded VAT amount must be zero.
The VAT amount for each category is calculated from the taxable amount and the VAT rate. The invoice must reflect this relationship with rounding to two decimal places.
The stated VAT amount does not match the taxable amount and VAT rate. Adjust the amount to the calculation rounded to two decimal places.
- Check
ram:BasisAmountandram:RateApplicablePercent. - Calculate the VAT amount from them and round it to two decimal places.
- Enter the result in
ram:CalculatedAmount. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> <ram:BasisAmount>100.00</ram:BasisAmount> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> <ram:CalculatedAmount>20.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:TypeCode>VAT</ram:TypeCode> <ram:BasisAmount>100.00</ram:BasisAmount> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> <ram:CalculatedAmount>19.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
Technical details
The test evaluates ram:CalculatedAmount for tax type VAT using ram:BasisAmount and ram:RateApplicablePercent; the calculated value is rounded to two decimal places. If no rate exists, the rounded amount must be zero.
The rule applies to each ram:ApplicableTradeTax in the invoice header settlement data.
rule/@context)assert/@test)- 2023-05-122023-05-12 · AddedTest for BR-CO-17 and BR-S-09 rounding rules in UBL
- 2023-05-122023-05-12 · ChangedTests for BR-CO-17 and BR-S-09 rounding rules in CII merged
- 2023-01-312023-01-31 · AddedTest for BR-CO-17 on currencies with rounding at totals in CII.