The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’.
The VAT identifier does not begin with one of the two-letter country codes accepted by the rule. For Greece, the prefix EL is also accepted alongside GR.
The prefix identifies the country in which the VAT identifier was issued. The rule accepts the listed ISO 3166-1 alpha-2 codes and EL for Greece.
The prefix of a VAT identifier with schemeID='VA' is not recognized as an accepted country code. Add the appropriate two-letter code at the beginning of the identifier.
- Check the
ram:IDinram:SpecifiedTaxRegistrationwithschemeID='VA'. - Make sure the first two characters form an accepted country code.
- For the seller’s VAT identifier, check the call to
AddSellerTaxRegistration(...); for the buyer’s VAT identifier, check the call toAddBuyerTaxRegistration(...). - Generate the invoice again and validate it again.
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">123456789</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration>
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)
For Greece, both GR and EL are accepted by the rule.
Technical details
The test checks whether the first two characters of ram:ID match a fixed list of accepted codes. It applies to ram:ID with schemeID='VA'.
The rule applies to a ram:ID in ram:SpecifiedTaxRegistration whose schemeID is VA.
rule/@context)assert/@test)