An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).
The invoice contains an invoice line with tax category G, but neither SellerTradeParty nor SellerTaxRepresentativeTradeParty contains a SpecifiedTaxRegistration/ID with schemeID VA. One of these VAT identifiers must be present.
Category G denotes an export outside the EU. For such an invoice line, the rule requires the seller's or the tax representative's VAT identifier.
An invoice line is marked as an export outside the EU (G), but both the seller's and the tax representative's VAT identifiers are missing. Either one of these identifiers is sufficient.
- Add the seller's or the tax representative's VAT identifier in
SpecifiedTaxRegistration/IDwithschemeIDVA. - If you set the seller identifier programmatically, check
AddSellerTaxRegistration(...). - Generate the invoice again and validate it.
<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 test passes if at least one of the two ID elements with schemeID VA is present. An invoice line with CategoryCode G triggers the check.
The rule applies to an invoice line's ApplicableTradeTax with CategoryCode G. It checks the seller's or tax representative's VAT identifier at document level.
rule/@context)assert/@test)