Rules / IBR-111
IBR-111 error
Item price discount must occur maximum once
Item price discount (ibt-147) must occur maximum once.
Fails
<cac:InvoiceLine>
<cbc:Amount>…</cbc:Amount>
<cbc:Amount>…</cbc:Amount>
</cac:InvoiceLine>
Fix
Keep a single cbc:Amount 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:Price/cac:AllowanceCharge/cbc:Amount) <= 1)
Official text: Item price discount (ibt-147) MUST occur maximum once.