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).
For an invoice line with VAT category O, ram:RateApplicablePercent is present. The test requires this element to be absent.
VAT category O identifies transactions that are not subject to VAT. Therefore, no VAT rate is stated on the invoice line for this category.
A VAT rate is present on an invoice line with VAT category O. For this category, ram:RateApplicablePercent must not be included.
- Check the VAT rate in
TradeLineItem.TaxPercent. - Omit the VAT rate for VAT category
O. - Generate the invoice again and validate it.
<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 in the context of VAT category O.
The rule applies to ApplicableTradeTax entries on an invoice line with VAT category O.
rule/@context)assert/@test)