Set the VAT rate to zero for export invoice lines

Error BR-G-05 EN 16931

In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" 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 with VAT category G for export outside the EU, but its ram:RateApplicablePercent is not 0.

What the rule means

An invoice line in category G must have a VAT rate of zero.

Affected fields BG-25 BT-151 BT-152
Please set the export invoice line’s VAT rate to zero

An invoice line uses category G for export outside the EU, 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>G</ram:CategoryCode>
  <ram:RateApplicablePercent>20</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>G</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 G under ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax.

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