Element variant 'ram:SpecifiedTaxRegistration[ram:ID/@schemeID="VA"]' may occur at maximum 1 times.
More than one ram:SpecifiedTaxRegistration element in SellerTradeParty contains a ram:ID with schemeID="VA". This variant may occur at most once.
In this rule, the VA designation identifies the seller tax registration variant for the VAT identifier. The rule prevents this variant from being provided more than once.
The seller details contain multiple tax registrations of the variant marked VA. This variant may appear only once.
- Find the
ram:SpecifiedTaxRegistrationelements inSellerTradeParty. - Count the elements whose
ram:IDhas theschemeID="VA"attribute. - Remove the duplicate
VAvariant so that it occurs no more than once. - Generate the invoice again and validate it once more.
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">VAT-1</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">VAT-2</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">VAT-1</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
Technical details
Only ram:SpecifiedTaxRegistration elements with a child ram:ID whose schemeID attribute is exactly VA are counted; the count must not exceed 1.
The rule applies to tax registrations in SellerTradeParty with ram:ID and the schemeID="VA" attribute.
rule/@context)assert/@test)