PintLint

Rules / IBR-066

IBR-066 error

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 a single cac:CardAccount here and delete the duplicates. 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).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice