Add request object to format job order data method #424

This commit is contained in:
Kendrick Chan 2020-06-21 14:49:31 +08:00
parent 60323acce3
commit fe363e1df6

View file

@ -605,7 +605,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
return $data;
}
protected function formatJobOrderData($jo)
protected function formatJobOrderData($req, $jo)
{
$coord = $jo->getCoordinates();
$cust = $jo->getCustomer();
@ -776,7 +776,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
return $data;
}
$jo_data = $this->formatJobOrderData($jo);
$jo_data = $this->formatJobOrderData($req, $jo);
$data = [
'job_order' => $jo_data
@ -1880,7 +1880,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
return $data;
}
$jo_data = $this->formatJobOrderData($jo);
$jo_data = $this->formatJobOrderData($req, $jo);
$data = [
'job_order' => $jo_data