In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Zero rated" the Invoiced item VAT rate (BT-152) shall be 0 (zero).
For an invoice line with VAT category Z, ram:RateApplicablePercent is not zero. The test requires the value to be exactly zero.
According to the rule text, VAT category Z denotes zero-rated treatment. The stated VAT rate must therefore be zero.
The VAT rate for an invoice line with VAT category Z is not zero. For this category, the stated rate must be exactly zero.
- Check the VAT rate in
TradeLineItem.TaxPercent. - Set the VAT rate to zero for VAT category
Z. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> <ram:RateApplicablePercent>5</ram:RateApplicablePercent> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:ApplicableTradeTax>
TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxPercent(BT-152)TradeLineItem.TaxType(BT-151-0)TaxCategoryCodes(BT-151)
Technical details
The test compares ram:RateApplicablePercent with zero. The context limits the check to ram:CategoryCode Z.
The rule applies to ram:RateApplicablePercent of an ApplicableTradeTax entry on an invoice line with VAT category Z.
rule/@context)assert/@test)