Message

[PEPPOL-T123-R012] Start date must be earlier or equal to end date

Context
cac:Period
Test
not(cbc:EndDate) or translate(cbc:StartDate,'-','') <= translate(cbc:EndDate,'-','')
Usage
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:RequestedPickupTransportEvent / cac:Period / cbc:StartDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:RequestedPickupTransportEvent / cac:Period / cbc:EndDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:RequestedDeliveryTransportEvent / cac:Period / cbc:StartDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:RequestedDeliveryTransportEvent / cac:Period / cbc:EndDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:MainCarriageShipmentStage / cac:RequestedDepartureTransportEvent / cac:Period / cbc:StartDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:MainCarriageShipmentStage / cac:RequestedDepartureTransportEvent / cac:Period / cbc:EndDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:MainCarriageShipmentStage / cac:RequestedArrivalTransportEvent / cac:Period / cbc:StartDate
/ ubl:TransportExecutionPlanRequest / cac:Consignment / cac:MainCarriageShipmentStage / cac:RequestedArrivalTransportEvent / cac:Period / cbc:EndDate