An Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT" shall not contain an Invoiced item VAT rate (BT-152).
The invoice line is assigned category O, but ram:RateApplicablePercent is present. This element must not be included for this category.
Category O denotes a transaction not subject to VAT. Therefore, no VAT rate is stated for the invoice line.
The invoice line is marked as not subject to VAT (O), but still contains a VAT rate element. You can remove this element from the line’s tax details.
- Check the invoice line’s tax category in
TradeLineItem.TaxCategoryCode. - Remove the VAT rate from
TradeLineItem.TaxPercent. - Generate the invoice again and validate it again.
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> </ram:ApplicableTradeTax>
TradeLineItem.TaxPercent(BT-152)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxType(BT-151-0)TaxCategoryCodes(BT-151)
Technical details
The test uses not(ram:RateApplicablePercent) to check that the element is absent from the selected ram:ApplicableTradeTax.
The rule applies to an invoice line’s ram:ApplicableTradeTax when its ram:CategoryCode has the value O for not subject to VAT.
rule/@context)assert/@test)