An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).
For a charge with VAT category G, both the seller VAT identifier in ram:SellerTradeParty and the tax representative VAT identifier in ram:SellerTaxRepresentativeTradeParty are missing. The rule requires at least one of these two identifiers.
VAT category G denotes an export outside the EU. The invoice must therefore contain the VAT identifier of the seller or the seller’s tax representative.
For a charge related to an export outside the EU, both the seller’s and the tax representative’s VAT identifiers are missing. Adding either identifier resolves the issue.
- Check the seller in
ram:SellerTradePartyand, if needed, add the VAT identifier usingAddSellerTaxRegistration(...). - Alternatively, check whether a VAT identifier is present in
ram:SellerTaxRepresentativeTradeParty. - Generate the invoice again and validate it.
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">12345</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> <ram:SellerTaxRepresentativeTradeParty/>
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
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
The XPath checks the invoice for at least one ram:SpecifiedTaxRegistration/ram:ID with schemeID='VA' under the seller or the tax representative. The test uses an OR condition.
The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value G for export outside the EU.
rule/@context)assert/@test)