Rules / IBR-SR-19
IBR-SR-19 error
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>
<cbc:Name>…</cbc:Name>
<cbc:Name>…</cbc:Name>
</cac:PayeeParty>
Fix
Keep a single cbc:Name here and delete the duplicates. If both values matter, one of them belongs in a different field.
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