Rules / IBR-SR-28
Mandate reference identifier must occur maximum once
Mandate reference identifier (ibt-089) must occur maximum once.
Fails
<cac:PaymentMeans>
…<cbc:ID>…</cbc:ID>
…<cbc:ID>…</cbc:ID>
</cac:PaymentMeans>
Fix
Keep one cac:PaymentMandate/cbc:ID in cac:PaymentMeans and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
cac:PaymentMeans- Test
(count(cac:PaymentMandate/cbc:ID) <= 1)
Official text: Mandate reference identifier (ibt-089) MUST occur maximum once