In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" the Invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than zero.
For an invoice line with VAT category M, the value of ram:RateApplicablePercent is less than zero. Under the test, the VAT rate must not be negative.
The rule text describes VAT category M as IPSI. For this category, the rule allows a zero or positive VAT rate.
The VAT rate for an invoice line with VAT category M is below zero. A value of zero or higher meets this rule.
- Check the VAT rate in
TradeLineItem.TaxPercent. - Make sure the value is zero or greater.
- Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>M</ram:CategoryCode> <ram:RateApplicablePercent>-1</ram:RateApplicablePercent> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>M</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 checks whether ram:RateApplicablePercent is numerically greater than or equal to zero. The context limits the check to ram:CategoryCode M.
The rule applies to the ram:RateApplicablePercent of an ApplicableTradeTax entry on an invoice line with VAT category M.
rule/@context)assert/@test)