Rules / IBR-SR-19
Payee name must occur maximum once, if the Payee is different from the Seller
Payee name (ibt-059) must occur maximum once, if the Payee is different from the Seller.
Fails
<cac:PayeeParty>
<cac:PartyName><cbc:Name>…</cbc:Name></cac:PartyName>
<cac:PartyName><cbc:Name>…</cbc:Name></cac:PartyName>
</cac:PayeeParty>
Fix
Keep one cac:PartyName/cbc:Name in cac:PayeeParty. If the payee is the seller, you can leave cac:PayeeParty out.
Schematron
- Context
cac:PayeeParty- Test
(count(cac:PartyName/cbc:Name) <= 1) or ((cac:PartyName/cbc:Name) = (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))
Official text: Payee name (ibt-059) MUST occur maximum once, if the Payee is different from the Seller