An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).
For an allowance in category G, both the seller’s VAT identifier and the tax representative’s VAT identifier are missing. At least one of these identifiers with schemeID VA must be present.
Code G denotes export outside the EU. The rule requires a VAT identifier for the seller or the seller’s tax representative in this case.
The allowance is marked with category G for export outside the EU, but the seller’s or tax representative’s VAT identifier is missing. Add one of these identifiers to the invoice.
- Check category
Gin the allowance’sram:CategoryCode. - Add the seller’s VAT identifier using
AddSellerTaxRegistration(...). - Alternatively, check the tax representative’s VAT identifier with
schemeIDVA. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:CategoryTradeTax> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">SELLER-VAT</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> </ram:SpecifiedTradeAllowanceCharge>
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)
For either permitted identifier, schemeID must have the value VA.
Technical details
The XPath test requires at least one of the two ram:SpecifiedTaxRegistration/ram:ID entries with schemeID VA: for the seller or for the tax representative.
The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge with category G. It checks the seller’s or the seller’s tax representative’s VAT identifier.
rule/@context)assert/@test)