PintLint

Rules / IBR-SR-46

IBR-SR-46 error

Payment means text must occur maximum once

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

Fails

<cac:PaymentMeans>
  <@name>…</@name>
  <@name>…</@name>
</cac:PaymentMeans>

Fix

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

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

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

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

Check an invoice