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
|
// for the rest of the HubCriteria fields
|
||||||
if ($this->hub_filter_enabled == 'true')
|
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');
|
// 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
|
// if true, set other values for HubCriteria
|
||||||
// error_log('Area is covered by hub filtering');
|
// error_log('Area is covered by hub filtering');
|
||||||
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
||||||
->setPaymentMethod($obj->getModeOfPayment())
|
->setPaymentMethod($obj->getModeOfPayment())
|
||||||
->setRoundRobin(true);
|
->setRoundRobin(true);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if emergency or not
|
// check if emergency or not
|
||||||
|
|
@ -2915,14 +2916,15 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
$cust = $obj->getCustomer();
|
$cust = $obj->getCustomer();
|
||||||
$hub_criteria->setCustomerClass($cust->getCustomerClassification());
|
$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
|
// if true, set other values for HubCriteria
|
||||||
// error_log('Area is covered by hub');
|
// error_log('Area is covered by hub');
|
||||||
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
$hub_criteria->setLimitDistance($this->cust_distance_limit)
|
||||||
->setPaymentMethod($obj->getModeOfPayment())
|
->setPaymentMethod($obj->getModeOfPayment())
|
||||||
->setRoundRobin(true);
|
->setRoundRobin(true);
|
||||||
}
|
//}
|
||||||
|
|
||||||
// check if emergency or not
|
// check if emergency or not
|
||||||
$willing_to_wait = $obj->getWillWait();
|
$willing_to_wait = $obj->getWillWait();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue