No VAT identifier for invoice lines not subject to VAT

Error BR-O-02 EN 16931

An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) 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-46).

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

For an invoice containing an invoice line in category O, at least one VAT identifier with schemeID VA is present for the seller, tax representative, or buyer. The test requires all three of these VAT identifiers to be absent.

What the rule means

Category O identifies a transaction not subject to VAT. In this case, the rule excludes the VAT identifiers of the seller, tax representative, and buyer.

Affected fields BG-25 BT-151 BT-31 BT-63 BT-46
Please remove VAT identifiers when invoice lines are not subject to VAT

The invoice contains an invoice line in category O and also a VAT identifier for the seller, tax representative, or buyer. Remove the VAT identifier details that this rule excludes.

What to do
  1. Check whether a VAT identifier with schemeID VA is included for the seller, tax representative, or buyer.
  2. Remove the relevant VAT identifier; for the seller, also check FacturXInvoice.AddSellerTaxRegistration(no, schemeID).
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>O</ram:CategoryCode>
</ram:ApplicableTradeTax>
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">123</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>O</ram:CategoryCode>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTaxRepresentativeTradeParty: BT-63)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.GetSellerTaxRegistration() (BT-31)
  • FacturXInvoice.GetSellerTaxRepresentativeTaxRegistration() (BT-63)
  • FacturXInvoice.GetShipToTaxRegistration() (BT-63)
Technical details

Using three not(...) conditions, the test requires that none of the specified ram:ID elements with schemeID VA occurs in the seller, tax representative, or buyer data.

Where the rule applies

The rule applies to invoices with at least one invoice line whose VAT category O means not subject to VAT. It checks the VAT identifiers of the seller, tax representative, and buyer.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ ram:ApplicableTradeTax[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