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 the IPSI VAT category (M), ram:RateApplicablePercent is negative. The test allows 0 or a positive value, but not a value below 0.
The rule specifies that the IPSI VAT rate must not be negative; zero and positive rates are permitted.
The invoice line is assigned to the IPSI category M, and its VAT rate is below zero. A rate of zero or a positive rate meets this condition.
- Check the invoice line’s tax category in
TradeLineItem.TaxCategoryCode. - Adjust
TradeLineItem.TaxPercentso that its value is at least 0. - Generate the invoice again and validate it again.
<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 in the selected ram:ApplicableTradeTax is greater than or equal to 0.
The rule applies to the VAT details of an invoice line whose ram:CategoryCode has the value M for IPSI.
rule/@context)assert/@test)