ibr-138-ae
Invoicing period [IBG-14] is MUST, where Invoice transaction type code [BTAE-02] is XXX1XXXX (Summary invoice).
error: the document is invalid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
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}$"))
Checked with PINT UAE Invoice, PINT UAE Credit Note