Element variant 'ram:SpecifiedTaxRegistration[ram:ID/@schemeID="VA"]' may occur at maximum 2 times.
More than two ram:SpecifiedTaxRegistration elements occur in ram:ManufacturerTradeParty with a ram:ID whose schemeID attribute has the value VA.
The rule limits to two the number of the manufacturer’s tax registrations identified with scheme VA.
More than two tax registrations with scheme VA are included for a product’s manufacturer. You can correct the invoice by limiting the number of these entries to no more than two.
- Find the product manufacturer’s
ram:SpecifiedTaxRegistrationelements withram:IDandschemeID="VA". - Limit these entries to no more than two.
- Regenerate the invoice and validate it again.
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">1</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">2</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">3</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">1</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">2</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
Technical details
Only direct ram:SpecifiedTaxRegistration elements whose ram:ID/@schemeID is exactly VA are counted; the test requires a count of no more than two.
The rule applies to the product’s manufacturer party, ram:ManufacturerTradeParty, within an invoice line.
rule/@context)assert/@test)