Add job order counters to open job order form #55
This commit is contained in:
parent
9e2cb60212
commit
29e9c7864e
1 changed files with 4 additions and 0 deletions
|
|
@ -1078,6 +1078,10 @@ class JobOrderController extends BaseController
|
|||
$hub['distance'] = false;
|
||||
}
|
||||
|
||||
// counters
|
||||
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
||||
$hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||
|
||||
$params['hubs'][] = $hub;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue