Fix bug in hub rider slots initialization #403
This commit is contained in:
parent
921a7180c8
commit
c64a78c4b5
1 changed files with 1 additions and 4 deletions
|
|
@ -3049,7 +3049,7 @@ class APIController extends Controller implements LoggedController
|
|||
$third_date => $third_date,
|
||||
];
|
||||
|
||||
// initialize hub slots
|
||||
// initialize hub rider slots
|
||||
$hub_rider_slots = [];
|
||||
foreach ($days as $day)
|
||||
{
|
||||
|
|
@ -3059,9 +3059,6 @@ class APIController extends Controller implements LoggedController
|
|||
}
|
||||
}
|
||||
|
||||
// array of # of riders that can handle JOs in a timeslot
|
||||
$hub_rider_slots = [];
|
||||
|
||||
// check each JO's date_schedule, decrement rider_slots if date schedule falls in that slot
|
||||
foreach ($jos_advance_orders as $jo)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue