An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) 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).
The invoice contains an invoice line with tax category K, but either both the seller's and tax representative's VAT identifiers are missing, or the buyer's VAT identifier is missing. A VAT identifier for the seller or tax representative and, additionally, a buyer VAT identifier are required.
Category K denotes an intra-community supply. This rule requires both a VAT identifier for the seller or tax representative and a VAT identifier for the buyer.
An invoice line is marked as an intra-community supply (K). The VAT identifier for the seller or tax representative, the buyer's VAT identifier, or both are missing.
- Add the seller's or tax representative's VAT identifier with
schemeIDVA. - Also add the buyer's VAT identifier with
schemeIDVA; checkAddBuyerTaxRegistration(...)for this. - If you set the seller identifier programmatically, check
AddSellerTaxRegistration(...). - 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 joins two conditions with and: a seller or tax representative ID with schemeID VA, and a buyer ID with schemeID VA. CategoryCode K triggers the check.
The rule applies to an invoice line's ApplicableTradeTax with CategoryCode K. It checks the seller's or tax representative's VAT identifier and the buyer's VAT identifier at document level.
rule/@context)assert/@test)