Rules / IBR-SR-50
IBR-SR-50 error
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 a single cbc:Description here and delete the duplicates. 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