PintLint

Rules / IBR-SR-60

IBR-SR-60 error

Payment Instruction ID must occur maximum once

Payment Instruction ID (ibt-187) must occur maximum once.

Fails

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

Fix

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

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

Official text: Payment Instruction ID (ibt-187) MUST occur maximum once.

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

Check an invoice