Rules / IBR-030
If both Invoice line period start date and Invoice line period end date are given then the Invoice line period end date must be later or equal to the Invoice line period start date
If both Invoice line period start date (ibt-134) and Invoice line period end date (ibt-135) are given then the Invoice line period end date (ibt-135) must be later or equal to the Invoice line period start date (ibt-134).
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:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/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.