Rules / IBR-191-AE
IBR-191-AE error
Payment means type code is 'Credit note' or "Credit note related to goods or services",…
Payment means type code (ibt-081) must be provided except when the invoice type code (ibt-003) is 'Credit note' or "Credit note related to goods or services", or Invoice transaction-type code (BTAE-002) is X1XXXXXX (Deemed supply).
Fails
<cbc:ProfileExecutionID>01000000</cbc:ProfileExecutionID>
<!-- the data this flag requires is missing or wrong -->
Fix
Transaction type 01000000 switches this rule on. Either add what the rule asks for, or, if the flag was set by mistake, set it back to 0.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
((cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "81" or (cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "381" or (cbc:InvoiceTypeCode|cbc:CreditNoteTypeCode) = "261" or matches(cbc:ProfileExecutionID, "^[01]1[01]{6}$")) or exists(cac:PaymentMeans/cbc:PaymentMeansCode)
Official text: Payment means type code (ibt-081) must be provided except when the invoice type code (ibt-003) is 'Credit note' or "Credit note related to goods or services", or Invoice transaction-type code (BTAE-002) is X1XXXXXX (Deemed supply).