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 document-level charge in category G, neither the seller nor the tax representative has a tax registration ID with schemeID VA. The test requires at least one of these two VAT identifiers.
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.
The document-level charge in category G has no VAT identifier for either the seller or the seller's tax representative. Either applicable identifier is sufficient for this check.
- Add a tax registration ID with
schemeIDVAfor the seller or the tax representative. - Review the seller identifier through
AddSellerTaxRegistration(...)orGetSellerTaxRegistration(), and the tax representative identifier throughGetSellerTaxRepresentativeTaxRegistration(). - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<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)
This rule requires an identifier with schemeID VA.
Technical details
The test accepts an ID with schemeID VA under SellerTradeParty or under SellerTaxRepresentativeTradeParty; the two paths are joined by OR.
The rule applies to a document-level charge in SpecifiedTradeAllowanceCharge whose ChargeIndicator is true and whose tax category is G. It checks the VAT identifier of the seller or the seller's tax representative.
rule/@context)assert/@test)