Temporarily disable hub filter area checks #800
This commit is contained in:
parent
8da5381a1c
commit
e7d8af516e
1 changed files with 8 additions and 6 deletions
|
|
@ -2564,15 +2564,16 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
// for the rest of the HubCriteria fields
|
||||
if ($this->hub_filter_enabled == 'true')
|
||||
{
|
||||
// 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
|
||||
|
|
@ -2915,14 +2916,15 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
$cust = $obj->getCustomer();
|
||||
$hub_criteria->setCustomerClass($cust->getCustomerClassification());
|
||||
|
||||
if ($this->hub_geofence->isCovered($long, $lat))
|
||||
{
|
||||
// TODO: allow this to be disabled via env or CRM. commenting out for now
|
||||
//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