PintLint

Rules / IBR-SR-05

IBR-SR-05 error

Payment terms must occur maximum once

Payment terms (ibt-020) must occur maximum once.

Fails

<cac:PaymentTerms>
  <cbc:Note>…</cbc:Note>
  <cbc:Note>…</cbc:Note>
</cac:PaymentTerms>

Fix

Keep a single cbc:Note here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:PaymentTerms
Test
(count(cbc:Note) <= 1)

Official text: Payment terms (ibt-020) MUST occur maximum once.

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

Check an invoice