Rules / IBR-067
An Invoice must contain maximum one Payment Mandate
An Invoice must contain maximum one Payment Mandate (ibg-19).
Fails
<Invoice>
…<cac:PaymentMandate>…</cac:PaymentMandate>
…<cac:PaymentMandate>…</cac:PaymentMandate>
</Invoice>
Fix
Keep one cac:PaymentMeans/cac:PaymentMandate in the invoice and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
count(cac:PaymentMeans/cac:PaymentMandate) <= 1
Official text: An Invoice MUST contain maximum one Payment Mandate (ibg-19).