VAT rate for intra-community charges

Error BR-IC-07 EN 16931

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" the Document level charge VAT rate (BT-103) 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

The charge has VAT category K, but ram:RateApplicablePercent is not equal to 0. A missing rate or a rate other than zero also fails the test.

What the rule means

A charge with category K must have a zero VAT rate because this category denotes an intra-community supply.

Affected fields BG-21 BT-102 BT-103
Please set the intra-community charge’s VAT rate to zero

The charge is marked as an intra-community supply, but its VAT rate is not zero. Adjust the charge’s rate to match this category.

What to do
  1. Check the charge in ram:SpecifiedTradeAllowanceCharge.
  2. Set ram:RateApplicablePercent to 0.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>K</ram:CategoryCode>
    <ram:RateApplicablePercent>5</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>K</ram:CategoryCode>
    <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • TaxCategoryCodes (BT-102)
  • FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-21)
  • FacturXInvoice.GetTradeCharges() (BG-21)
  • AbstractTradeAllowanceCharge (Document level charge: BG-21)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Document level charge: BG-21)
Technical details

The test compares ram:RateApplicablePercent directly with 0. It requires equality to zero.

Where the rule applies

The rule applies to the VAT rate ram:RateApplicablePercent of a document level charge in ram:SpecifiedTradeAllowanceCharge when the VAT category ram:CategoryTradeTax/ram:CategoryCode is K.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'K']
Test expression (assert/@test)
ram:RateApplicablePercent = 0