Rules / IBR-022
IBR-022 error
Each Invoice line
Each Invoice line (ibg-25) must have an invoiced quantity (ibt-129)..
Fails
<cac:InvoiceLine>
<!-- cbc:InvoicedQuantity or cbc:CreditedQuantity missing -->
</cac:InvoiceLine>
Fix
Add cbc:InvoicedQuantity or cbc:CreditedQuantity.
Schematron
- Context
cac:InvoiceLine | cac:CreditNoteLine- Test
exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)
Official text: Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..