Add customer id to hub filter logging in APIController. #594
This commit is contained in:
parent
dc68f899e7
commit
0a706f453b
1 changed files with 8 additions and 2 deletions
|
|
@ -1043,8 +1043,11 @@ class APIController extends Controller implements LoggedController
|
|||
if (!empty($sku))
|
||||
$hub_criteria->addItem($batt->getSAPCode(), 1);
|
||||
|
||||
// get customer id. No JO id at this point
|
||||
$customer_id = $cust->getID();
|
||||
|
||||
// find nearest hubs
|
||||
$nearest_hubs = $hub_select->find($hub_criteria);
|
||||
$nearest_hubs = $hub_select->find($hub_criteria, null, $customer_id);
|
||||
|
||||
if (!empty($nearest_hubs))
|
||||
{
|
||||
|
|
@ -2769,8 +2772,11 @@ class APIController extends Controller implements LoggedController
|
|||
if (!empty($sku))
|
||||
$hub_criteria->addItem($batt->getSAPCode(), 1);
|
||||
|
||||
// get customer id. No JO id at this point
|
||||
$customer_id = $cust->getID();
|
||||
|
||||
// find nearest hubs
|
||||
$nearest_hubs = $hub_select->find($hub_criteria);
|
||||
$nearest_hubs = $hub_select->find($hub_criteria, null, $customer_id);
|
||||
|
||||
if (!empty($nearest_hubs))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue