Rules / IBR-002
IBR-002 error
An Invoice must have an Invoice number
An Invoice must have an Invoice number (ibt-001).
Fails
<Invoice>
<!-- cbc:ID is missing -->
</Invoice>
Fix
Add cbc:ID inside Invoice.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
normalize-space(cbc:ID) !=''
Official text: An Invoice MUST have an Invoice number (ibt-001).