Add customer information to latest job order. #632
This commit is contained in:
parent
ca21fcd5c9
commit
9c73a18b2e
1 changed files with 8 additions and 0 deletions
|
|
@ -4520,6 +4520,14 @@ class APIController extends Controller implements LoggedController
|
|||
'warranty' => $warranty,
|
||||
];
|
||||
|
||||
// customer information
|
||||
$customer = $jo->getCustomer();
|
||||
$jo_data['customer'] = [
|
||||
'first_name' => $customer->getFirstName(),
|
||||
'last_name' => $customer->getLastName(),
|
||||
'mobile_number' => $customer->getPhoneMobile(),
|
||||
];
|
||||
|
||||
// rider
|
||||
$rider = $jo->getRider();
|
||||
if ($rider != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue