FIX_FIRST NAME NOT IN SHIPPING ADDRESS ISSUE
This commit is contained in:
parent
89d7b3be03
commit
d1279ed129
@ -153,7 +153,7 @@ class Invoice extends BaseController
|
|||||||
$where = ['customer_addresses.isactive' => 1, 'customer_addresses.customer_id' => (int)$id];
|
$where = ['customer_addresses.isactive' => 1, 'customer_addresses.customer_id' => (int)$id];
|
||||||
$where['address_type'] = 1;
|
$where['address_type'] = 1;
|
||||||
$data['customer_billing'] = $this->get_customer_address($where, []);
|
$data['customer_billing'] = $this->get_customer_address($where, []);
|
||||||
$select = ["customer_address_id", "CONCAT(address_1,' ',address_2) as address"];
|
$select = ["customer_address_id", "CONCAT(address_1,' ',address_2) as address","first_name"];
|
||||||
$where['address_type'] = 2;
|
$where['address_type'] = 2;
|
||||||
$data['customer_shipping'] = $this->get_customer_address($where, $select);
|
$data['customer_shipping'] = $this->get_customer_address($where, $select);
|
||||||
return $this->response->setJSON(['data' => $data]);
|
return $this->response->setJSON(['data' => $data]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user