Merge branch '403-resq-refactor-setting-of-each-day-in-auto-assign-advance-order-jo' into 'master'
Fix bug in hub rider slots initialization #403 Closes #403 See merge request jankstudio/resq!458
This commit is contained in:
commit
2bba2430be
1 changed files with 1 additions and 4 deletions
|
|
@ -3049,7 +3049,7 @@ class APIController extends Controller implements LoggedController
|
||||||
$third_date => $third_date,
|
$third_date => $third_date,
|
||||||
];
|
];
|
||||||
|
|
||||||
// initialize hub slots
|
// initialize hub rider slots
|
||||||
$hub_rider_slots = [];
|
$hub_rider_slots = [];
|
||||||
foreach ($days as $day)
|
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
|
// check each JO's date_schedule, decrement rider_slots if date schedule falls in that slot
|
||||||
foreach ($jos_advance_orders as $jo)
|
foreach ($jos_advance_orders as $jo)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue