Non-negative VAT rate for IPSI

Error BR-AG-05 EN 16931

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.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

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.

What the rule means

The rule specifies that the IPSI VAT rate must not be negative; zero and positive rates are permitted.

Affected fields BG-25 BT-151 BT-152
Please avoid a negative VAT rate for the IPSI invoice line

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.

What to do
  1. Check the invoice line’s tax category in TradeLineItem.TaxCategoryCode.
  2. Adjust TradeLineItem.TaxPercent so that its value is at least 0.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>M</ram:CategoryCode>
  <ram:RateApplicablePercent>-1</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>M</ram:CategoryCode>
  <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • 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.

Where the rule applies

The rule applies to the VAT details of an invoice line whose ram:CategoryCode has the value M for IPSI.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ ram:ApplicableTradeTax[ram:CategoryCode = 'M']
Test expression (assert/@test)
ram:RateApplicablePercent >= 0