Resolve "Hub Filter Report" #1524

Merged
korina.cordero merged 5 commits from 594-hub-filter-report into master-fix 2021-07-01 07:14:50 +00:00
Showing only changes of commit 0a706f453b - Show all commits

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