Resolve "Resq - message prompt for non-serviceable area" #1353

Merged
korina.cordero merged 176 commits from 463-resq-message-prompt-for-non-serviceable-area into 465-resq-august-13-release 2020-08-12 05:41:57 +00:00
Showing only changes of commit 2f8dca3dbc - Show all commits

View file

@ -2083,7 +2083,10 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
$data = $this->checkJO($req, $required_params, $jo);
if (isset($data['error']))
{
$data['title'] = 'Failed Verify Job Order';
$data = [
'assigned' => false,
'available' => false,
];
return $data;
}
@ -2092,16 +2095,15 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
($jo->getStatus() == JOStatus::CANCELLED))
{
$data = [
'title' => 'Failed Verify Job Order',
'error' => 'Job order has been fulfilled or cancelled.'
'assigned' => 'true',
'available' => 'false'
];
return $data;
}
$jo_data = $this->formatJobOrderData($req, $jo);
$data = [
'job_order' => $jo_data
'assigned' => true,
'available' => true,
];
return $data;