Positive tax rate for an IGIC allowance

Error BR-AF-06 EN 16931

In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero.

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

The test requires RateApplicablePercent to be greater than zero. A missing tax rate or a value of zero does not satisfy this condition.

What the rule means

Category L denotes IGIC. Under the validation condition applied here, the allowance’s tax rate must be strictly positive.

Affected fields BG-20 BT-95 BT-96
Please enter a positive tax rate for the IGIC allowance

The allowance with category L does not have a positive tax rate. The rule requires a value greater than zero.

What to do
  1. Check the AddTradeAllowance(...) call for the document level allowance.
  2. Enter a tax rate greater than 0.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>L</ram:CategoryCode>
    <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>L</ram:CategoryCode>
    <ram:RateApplicablePercent>1</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • TaxCategoryCodes (BT-95)
  • FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-20)
  • FacturXInvoice.GetTradeAllowances() (BG-20)
  • FacturXInvoice.TradeAllowanceCharges (BG-20)
  • AbstractTradeAllowanceCharge (Document level allowance: BG-20)
Technical details

The test uses ram:RateApplicablePercent > 0; zero and a missing element do not pass the test.

Where the rule applies

The rule applies to RateApplicablePercent in the tax information for a document level allowance under SpecifiedTradeAllowanceCharge with CategoryCode L.

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