Set the tax amount for exports outside the EU to zero

Error BR-G-09 EN 16931

The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" 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

For category G, the tax amount specified in ram:CalculatedAmount is not zero. The amount must be zero for this VAT breakdown.

What the rule means

G denotes exports outside the EU. This rule requires the tax amount in the VAT breakdown for this category to be zero.

Affected fields BT-117 BG-23 BT-118
Please set the tax amount for exports outside the EU to zero

The tax group with category G contains a non-zero tax amount. Adjust the amount in the VAT breakdown.

What to do
  1. Check the tax group with ram:CategoryCode G.
  2. Set ram:CalculatedAmount to zero.
  3. Check the values passed to FacturXInvoice.AddApplicableTradeTax(...).
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>G</ram:CategoryCode>
  <ram:CalculatedAmount>5.00</ram:CalculatedAmount>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>G</ram:CategoryCode>
  <ram:CalculatedAmount>0</ram:CalculatedAmount>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • TaxCategoryCodes (BT-118)
  • FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount) (BG-23)
  • FacturXInvoice.AnyApplicableTradeTaxes() (BG-23)
  • FacturXInvoice.GetApplicableTradeTaxes() (BG-23)
  • FacturXInvoice.Taxes (BG-23)
Technical details

The test applies to ram:ApplicableTradeTax with ram:CategoryCode equal to G and requires the sibling ram:CalculatedAmount to have the numeric value 0.

Where the rule applies

The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax whose ram:CategoryCode has the value G.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ ram:CategoryCode[. = 'G']
Test expression (assert/@test)
../ram:CalculatedAmount = 0