Add customer id to hub filter logging in APIController. #594

This commit is contained in:
Korina Cordero 2021-07-01 03:25:59 +00:00
parent dc68f899e7
commit 0a706f453b

View file

@ -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))
{