Element 'ram:SpecifiedTaxRegistration' must occur exactly 1 times.
The ram:SpecifiedTaxRegistration element is missing from BuyerTaxRepresentativeTradeParty or occurs more than once. It must occur exactly once.
The tax registration detail of the tax representative must be present exactly once in this XML context.
The tax registration for the buyer’s tax representative is either missing or entered more than once. The invoice must contain exactly one ram:SpecifiedTaxRegistration element.
- Find
BuyerTaxRepresentativeTradePartyin the invoice. - Check how many times
ram:SpecifiedTaxRegistrationoccurs there. - Add or remove entries so that the element is present exactly once.
- Generate the invoice again and validate it once more.
<ram:BuyerTaxRepresentativeTradeParty/>
<ram:BuyerTaxRepresentativeTradeParty> <ram:SpecifiedTaxRegistration/> </ram:BuyerTaxRepresentativeTradeParty>
Technical details
The test counts the direct ram:SpecifiedTaxRegistration elements in BuyerTaxRepresentativeTradeParty and requires exactly one.
The rule applies to the buyer’s tax representative details in BuyerTaxRepresentativeTradeParty.
rule/@context)assert/@test)