Element 'ram:RoleCode' may occur at maximum 1 times.
In ram:BuyerTaxRepresentativeTradeParty, ram:RoleCode occurs more than once. The element may appear at most once.
The rule limits the number of role codes for the buyer’s tax representative to one; ram:RoleCode is optional.
The buyer’s tax representative has multiple ram:RoleCode elements. The role code may be omitted, but it must not occur more than once.
- Locate
ram:BuyerTaxRepresentativeTradeParty. - Remove any extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:BuyerTaxRepresentativeTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:BuyerTaxRepresentativeTradeParty>
<ram:BuyerTaxRepresentativeTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:BuyerTaxRepresentativeTradeParty>
Technical details
The check tests whether the number of direct ram:RoleCode elements in ram:BuyerTaxRepresentativeTradeParty is at most one.
The rule applies to ram:RoleCode within ram:BuyerTaxRepresentativeTradeParty, that is, the buyer’s tax representative.
rule/@context)assert/@test)