PintLint

Rules / IBR-SR-52

IBR-SR-52 error

Tender or lot reference must occur maximum once

Tender or lot reference (ibt-017) must occur maximum once.

Fails

<Invoice>
  <cbc:ID>…</cbc:ID>
  <cbc:ID>…</cbc:ID>
</Invoice>

Fix

Keep a single cbc:ID 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:OriginatorDocumentReference/cbc:ID) <= 1)

Official text: Tender or lot reference (ibt-017) MUST occur maximum once

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

Check an invoice