PintLint

Rules / IBR-SR-50

Item description must occur maximum once

Item description (ibt-154) must occur maximum once.

Fails

<cac:InvoiceLine>
  …<cbc:Description>…</cbc:Description>
  …<cbc:Description>…</cbc:Description>
</cac:InvoiceLine>

Fix

Keep one cac:Item/cbc:Description in cac:InvoiceLine and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
(count(cac:Item/cbc:Description) <= 1)

Official text: Item description (ibt-154) MUST occur maximum once

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

Check your invoice for this rule