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 charge with VAT category K, either the VAT identifiers of both the seller and the tax representative are missing, or the buyer’s VAT identifier is missing. A seller or tax representative VAT identifier is required, as well as a buyer VAT identifier.
Category K denotes an intra-community supply. For this case, the rule requires a VAT identifier for the seller or the seller’s tax representative and a VAT identifier for the buyer.
For a charge related to an intra-community supply, required VAT identifiers are missing. You need one for the seller or the seller’s tax representative and one for the buyer.
- Add the seller’s VAT identifier using
AddSellerTaxRegistration(...), or check the tax representative’s VAT identifier. - Add the buyer’s VAT identifier using
AddBuyerTaxRegistration(...). - Generate the invoice again and validate it.
<ram:SellerTradeParty/> <ram:SellerTaxRepresentativeTradeParty/> <ram:BuyerTradeParty/>
<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)
Technical details
The test combines two conditions with AND: a VAT identifier with schemeID='VA' for the seller or tax representative, and a VAT identifier with schemeID='VA' for the buyer.
The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge with VAT category K for an intra-community supply. It also checks the tax registrations of the seller or tax representative and the buyer.
rule/@context)assert/@test)