Rules / IBR-138-AE
IBR-138-AE error
Invoicing period is must, where Invoice transaction type code is XXX1XXXX (Summary…
Invoicing period [IBG-14] is must, where Invoice transaction type code [BTAE-02] is XXX1XXXX (Summary invoice).
Fails
<cbc:ProfileExecutionID>00010000</cbc:ProfileExecutionID>
<!-- the data this flag requires is missing or wrong -->
Fix
Transaction type 00010000 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
(matches(cbc:ProfileExecutionID, "^[01]{3}1[01]{4}$") and cac:InvoicePeriod) or not(matches(cbc:ProfileExecutionID, "^[01]{3}1[01]{4}$"))
Official text: Invoicing period [IBG-14] is MUST, where Invoice transaction type code [BTAE-02] is XXX1XXXX (Summary invoice).