Tax amount for intra-community supplies

Error BR-IC-09 EN 16931

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

In the VAT breakdown with category code K, ram:CalculatedAmount is not zero. The tax amount for this category must be zero.

What the rule means

Code K represents an intra-community supply. The rule requires a zero tax amount for this VAT category in the VAT breakdown.

Affected fields BT-117 BG-23 BT-118
Please set the tax amount for `K` to zero

A non-zero tax amount is recorded in the VAT breakdown with category code K. You can resolve this by adjusting that amount.

What to do
  1. Find the VAT breakdown with ram:CategoryCode K.
  2. Check the amount in ram:CalculatedAmount.
  3. Set the amount to zero in FacturXInvoice.AddApplicableTradeTax(...).
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>K</ram:CategoryCode>
  <ram:CalculatedAmount>5.00</ram:CalculatedAmount>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>K</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 runs in the context of a ram:CategoryCode with value K and compares the value of the sibling ram:CalculatedAmount numerically with zero.

Where the rule applies

The rule applies to the tax amount ram:CalculatedAmount in a document-level VAT breakdown ram:ApplicableTradeTax when its ram:CategoryCode has the value K.

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