An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48).
For a document-level charge in category K, either the VAT identifier of both the seller and the tax representative is missing, or the buyer's VAT identifier is missing. At least one seller or representative identifier and, in addition, a buyer identifier are required, each with schemeID VA.
Category K denotes an intra-community supply. The rule requires a VAT identifier for the seller or the seller's tax representative, and also a VAT identifier for the buyer.
A required VAT identifier is missing for the seller or the seller's tax representative, or for the buyer, for the document-level charge in category K. Add identifiers for both sides to satisfy the check.
- Add a VAT identifier with
schemeIDVAfor the seller or the tax representative. - Also add a VAT identifier with
schemeIDVAfor the buyer. - Review the buyer details through
AddBuyerTaxRegistration(...),BuyerTaxRegistrationorGetBuyerTaxRegistration(), and the seller details throughAddSellerTaxRegistration(...). - Generate the invoice again and validate it once more.
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> <ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">FR12345678901</ram:ID> </ram:SpecifiedTaxRegistration> </ram:BuyerTradeParty>
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)
schemeID VA is required for each of the identifiers.
Technical details
The test requires a logical AND between a seller ID with schemeID VA under SellerTradeParty or SellerTaxRepresentativeTradeParty, and a buyer ID with schemeID VA under BuyerTradeParty.
The rule applies to a document-level charge in SpecifiedTradeAllowanceCharge whose ChargeIndicator is true and whose tax category is K. It checks the VAT identifier of the seller or tax representative and the buyer's VAT identifier.
rule/@context)assert/@test)