homeDeliveryDate = shipmentRouteSegment.getTimestamp("homeDeliveryDate");
if (UtilValidate.isEmpty(homeDeliveryDate)) {
return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"FacilityShipmentFedexHomeDeliveryDateRequired",
UtilMisc.toMap("shipmentId", shipmentId, "shipmentRouteSegmentId", shipmentRouteSegmentId), locale));
} else if (homeDeliveryDate.before(UtilDateTime.nowTimestamp())) {
return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"FacilityShipmentFedexHomeDeliveryDateBeforeCurrentDate",
UtilMisc.toMap("shipmentId", shipmentId, "shipmentRouteSegmentId", shipmentRouteSegmentId), locale));
}
}