Rules / IBR-066
An Invoice must contain maximum one Payment Card account
An Invoice must contain maximum one Payment Card account (ibg-18).
Fails
<Invoice>
…<cac:CardAccount>…</cac:CardAccount>
…<cac:CardAccount>…</cac:CardAccount>
</Invoice>
Fix
Keep one cac:PaymentMeans/cac:CardAccount 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:CardAccount) <= 1
Official text: An Invoice MUST contain maximum one Payment Card account (ibg-18).