Rules / IBR-029
If both Invoicing period start date and Invoicing period end date are given then the Invoicing period end date must be later or equal to the Invoicing period start date
If both Invoicing period start date (ibt-073) and Invoicing period end date (ibt-074) are given then the Invoicing period end date (ibt-074) must be later or equal to the Invoicing period start date (ibt-073).
Fails when this is false
(exists(cbc:EndDate) and exists(cbc:StartDate) and xs:date(cbc:EndDate) >= xs:date(cbc:StartDate)) or not(exists(cbc:StartDate)) or not(exists(cbc:EndDate))The schematron test, verbatim. Context: cac:InvoicePeriod
Fix
Change the data so the condition below holds. It reads cbc:EndDate, cbc:StartDate. Paste the invoice into the validator to see the exact element that fails.