Rules / IBR-086
End date of line period must be within invoice period
End date of line period (ibt-135) must be within invoice period (ibg-14).
Fails when this is false
(cbc:EndDate <= xs:date(../../cac:InvoicePeriod/cbc:EndDate)) or not(cbc:EndDate) or not(../../cac:InvoicePeriod/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 cac:InvoicePeriod, cbc:EndDate. Paste the invoice into the validator to see the exact element that fails.