PintLint

Rules / IBR-SR-27

Payment means text must occur maximum once

Payment means text (ibt-081) must occur maximum once.

Fails

<cac:PaymentMeans>
  <cbc:PaymentMeansCode>…</cbc:PaymentMeansCode>
  <cbc:PaymentMeansCode>…</cbc:PaymentMeansCode>
</cac:PaymentMeans>

Fix

Keep one cbc:PaymentMeansCode in cac:PaymentMeans and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:PaymentMeans
Test
(count(cbc:PaymentMeansCode) <= 1)

Official text: Payment means text (ibt-081) MUST occur maximum once

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

Check your invoice for this rule