PintLint

Rules / IBR-067

IBR-067 error

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 a single cac:PaymentMandate 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:PaymentMandate) <= 1

Official text: An Invoice MUST contain maximum one Payment Mandate (ibg-19).

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

Check an invoice