Set the reverse-charge charge rate to zero

Error BR-AE-07 EN 16931

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" 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 is assigned to category AE for reverse charge, but ram:RateApplicablePercent is not zero. For this category, the VAT rate must be exactly 0.

What the rule means

Under reverse charge, the charge is stated with a zero VAT rate. The stated rate must therefore match VAT category AE.

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

The charge is marked as reverse charge, but its VAT rate is not zero. You can adjust the value in the charge’s tax details.

What to do
  1. Open the document-level charge details.
  2. Check the value of ram:RateApplicablePercent.
  3. Set the VAT rate to 0, for example using AddTradeCharge(...).
  4. 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>AE</ram:CategoryCode>
    <ram:RateApplicablePercent>19</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>AE</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 requires ram:RateApplicablePercent in the matching ram:CategoryTradeTax context to be exactly 0. The context limits the check to charges with ram:ChargeIndicator equal to true and category code AE.

Where the rule applies

The rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value AE.

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