Set the VAT rate to zero for VAT-exempt invoice lines

Error BR-E-05 EN 16931

In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT", the Invoiced item VAT rate (BT-152) shall be 0 (zero).

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

An invoice line is marked as VAT-exempt with VAT category E, but its ram:RateApplicablePercent is not 0.

What the rule means

A VAT-exempt invoice line must have a VAT rate of zero.

Affected fields BG-25 BT-151 BT-152
Please set the VAT rate of the VAT-exempt invoice line to zero

An invoice line uses category E for VAT exemption, but its VAT rate is not zero. Adjust the VAT rate for that invoice line.

What to do
  1. Check the VAT rate for the relevant invoice line in TradeLineItem.TaxPercent.
  2. Make sure ram:RateApplicablePercent contains the value 0.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>E</ram:CategoryCode>
  <ram:RateApplicablePercent>20</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>E</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 has the numeric value 0.

Where the rule applies

This rule applies to ram:RateApplicablePercent in the tax information of an invoice line with category E under ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax.

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