Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
fix: use PickupServiceTime when converting to CarrierService for coll…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
kt86 committed Nov 15, 2024
1 parent 140fc9d commit 8d4172c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private CarrierService convertToCarrierService(LspShipment lspShipment) {
CarrierService carrierService = CarrierService.Builder.newInstance(serviceId, lspShipment.getFrom())
.setServiceStartTimeWindow(TimeWindow.newInstance(lspShipment.getPickupTimeWindow().getStart(), lspShipment.getPickupTimeWindow().getEnd()))
.setCapacityDemand(lspShipment.getSize())
.setServiceDuration(lspShipment.getDeliveryServiceTime())
.setServiceDuration(lspShipment.getPickupServiceTime())
.build();
//ensure that the ids of the lspShipment and the carrierService are the same. This is needed for updating the LSPShipmentPlan
if (! Objects.equals(lspShipment.getId().toString(), carrierService.getId().toString())) {
Expand Down Expand Up @@ -134,7 +134,7 @@ private void addShipmentLoadElement(
double startTimeOfLoading =
legBeforeService.getExpectedDepartureTime() + legBeforeService.getExpectedTransportTime();
builder.setStartTime(startTimeOfLoading);
builder.setEndTime(startTimeOfLoading + lspShipment.getDeliveryServiceTime());
builder.setEndTime(startTimeOfLoading + lspShipment.getPickupServiceTime());

LspShipmentPlanElement load = builder.build();
String idString =
Expand Down

0 comments on commit 8d4172c

Please sign in to comment.