FIX_FIRST NAME NOT IN SHIPPING ADDRESS ISSUE

This commit is contained in:
Srinivas-Saravanan 2024-12-19 12:30:21 +05:30
parent 89d7b3be03
commit d1279ed129

View File

@ -153,7 +153,7 @@ class Invoice extends BaseController
$where = ['customer_addresses.isactive' => 1, 'customer_addresses.customer_id' => (int)$id];
$where['address_type'] = 1;
$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;
$data['customer_shipping'] = $this->get_customer_address($where, $select);
return $this->response->setJSON(['data' => $data]);