Skip to content

Commit

Permalink
also add shipment carrier for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rewertvsp committed Sep 30, 2024
1 parent 5c407fa commit 08426bb
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ public static boolean allJobsHandledBySelectedPlan(Carrier carrier) {
handledJobs = carrier.getSelectedPlan().getScheduledTours().stream().mapToInt(
tour -> (int) tour.getTour().getTourElements().stream().filter(
element -> element instanceof Tour.ShipmentBasedActivity).count()).sum();
handledJobs = handledJobs / 2; // Shipment has two activities
}
if (planedJobs != handledJobs) {
log.warn("Carrier {}: {} of {} jobs were not handled!", carrier.getId(), planedJobs - handledJobs, planedJobs);
Expand Down
Loading

0 comments on commit 08426bb

Please sign in to comment.