From d1279ed129367989b1b49bb600c01467b8c04ff2 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Thu, 19 Dec 2024 12:30:21 +0530 Subject: [PATCH] FIX_FIRST NAME NOT IN SHIPPING ADDRESS ISSUE --- app/Controllers/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 37b7e89a..cc6e41cf 100755 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -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]);