No VAT identifiers for an out-of-scope allowance

Error BR-O-03 EN 16931

An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48).

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

For an allowance with category O, the invoice contains a VAT identifier for the seller, tax representative, or buyer. The test requires that none of these VAT identifiers be present.

What the rule means

Category O denotes a transaction not subject to VAT. In this case, the rule excludes the three VAT identifiers explicitly checked.

Affected fields BG-20 BT-95 BT-31 BT-63 BT-48
Please remove the VAT identifiers for the out-of-scope allowance

The allowance is marked with category O, but at least one of the checked VAT identifiers is present. For this category, the seller’s, tax representative’s, and buyer’s VAT identifiers must not be included.

What to do
  1. Check the seller’s VAT identifier and remove it, if present, using AddSellerTaxRegistration(...).
  2. Check the buyer’s VAT identifier and remove it, if present, using AddBuyerTaxRegistration(...).
  3. Also remove the tax representative’s VAT identifier, if present.
  4. 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>O</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">SELLER</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>O</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
<ram:SellerTradeParty/>
<ram:SellerTaxRepresentativeTradeParty/>
<ram:BuyerTradeParty/>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTaxRepresentativeTradeParty: BT-63)
  • FacturXInvoice.AddBuyerTaxRegistration(no, schemeID) (BT-48)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.BuyerTaxRegistration (BT-48)
  • FacturXInvoice.GetBuyerTaxRegistration() (BT-48)
Technical details

The test requires that no ID with schemeID='VA' be present under SellerTradeParty, SellerTaxRepresentativeTradeParty, or BuyerTradeParty.

Where the rule applies

The rule applies to a document level allowance under SpecifiedTradeAllowanceCharge with CategoryCode O. It checks the VAT identifiers of the seller, tax representative, and buyer.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='false']/ ram:CategoryTradeTax[ram:CategoryCode = 'O']
Test expression (assert/@test)
not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])
Changes in the KoSIT validation rules
  • 2022-11-152022-11-15 · AddedTests on interference of BR-DE-16 with BR-O-02, BR-O-03, and BR-O-04