Only a VAT registration ID may be provided for the following business partners: the line level Ship-To (BT-X-66), the line level Ultimate-Ship-To (BT-X-84), the Sales-Agent (BT-X-340), the Buyer-Tax-Representative (BT-X-367), the Product-Enduser (BT-X-144), the Buyer-Agent (BT-X-411), the document level Ship-To (BT-X-161), the document level Ultimate-Ship-To (BT-X-180), the Ship-From (BT-X-199), the Invoicer (BT-X-223), the Invoicee (BT-X-242), the document level Payee (BT-X-257), the Payer (BT-X-481), or the payment-term-specific Payee (BT-X-509).
For one of the specified business partners, ram:ID has a schemeID value other than VA. The rule checks the ID’s scheme, not its format or content.
VA identifies a VAT registration number. For the business partners listed in the rule, this field may use only that scheme.
A business partner’s tax registration uses a scheme other than VA. You can update the entry in the invoice.
- Identify which business partner the affected
ram:SpecifiedTaxRegistrationbelongs to. - For an invoicee registration, check the call to
AddInvoiceeTaxRegistration(...); for a ship-to registration, check the call toAddShipToTaxRegistration(...). - Set
schemeID="VA"for the associatedram:ID. - Generate the invoice again and validate it once more.
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="ZZ">123</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">123</ram:ID> </ram:SpecifiedTaxRegistration>
FacturXInvoice.AddInvoiceeTaxRegistration(no, schemeID)(BT-X-242-00)FacturXInvoice.AddShipToTaxRegistration(no, schemeID)(BT-X-66-00)
Technical details
The XPath checks whether the schemeID attribute has the value VA. Registrations within ram:SellerTradeParty are excluded by the rule context.
The rule applies to ram:ID within ram:SpecifiedTaxRegistration when the registration does not belong to the seller.
rule/@context)assert/@test)