Restored hub filter area functionality #800
This commit is contained in:
parent
5f2ed34d8c
commit
a66d16a58b
1 changed files with 6 additions and 6 deletions
|
|
@ -2566,14 +2566,14 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
{
|
||||
// TODO: allow this to be disabled via env or CRM. commenting out for now
|
||||
// error_log('hub filter is enabled');
|
||||
//if ($this->hub_geofence->isCovered($long, $lat))
|
||||
//{
|
||||
if ($this->hub_geofence->isCovered($long, $lat))
|
||||
{
|
||||
// if true, set other values for HubCriteria
|
||||
// error_log('Area is covered by hub filtering');
|
||||
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
||||
->setPaymentMethod($obj->getModeOfPayment())
|
||||
->setRoundRobin(true);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
// check if emergency or not
|
||||
|
|
@ -2919,14 +2919,14 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
$hub_criteria->setCustomerClass($cust->getCustomerClassification());
|
||||
|
||||
// TODO: allow this to be disabled via env or CRM. commenting out for now
|
||||
//if ($this->hub_geofence->isCovered($long, $lat))
|
||||
//{
|
||||
if ($this->hub_geofence->isCovered($long, $lat))
|
||||
{
|
||||
// if true, set other values for HubCriteria
|
||||
// error_log('Area is covered by hub');
|
||||
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
||||
->setPaymentMethod($obj->getModeOfPayment())
|
||||
->setRoundRobin(true);
|
||||
//}
|
||||
}
|
||||
|
||||
// check if emergency or not
|
||||
$willing_to_wait = $obj->getWillWait();
|
||||
|
|
|
|||
Loading…
Reference in a new issue