Element variant 'ram:SpecifiedTaxRegistration[ram:ID/@schemeID="FC"]' 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 FC.
The rule limits to two the number of the manufacturer’s tax registrations identified with scheme FC.
More than two tax registrations with scheme FC 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="FC". - Limit these entries to no more than two.
- Regenerate the invoice and validate it again.
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">1</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">2</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">3</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">1</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">2</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
Technical details
Only direct ram:SpecifiedTaxRegistration elements whose ram:ID/@schemeID is exactly FC 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)