From e420e651db48021b31a76e0c0a39e900ad6bb222 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Tue, 20 May 2025 15:54:16 +0530 Subject: [PATCH] FIX_PAYMENT_STATUS_NAME_ISSUE --- app/Models/PaymentStatusModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/PaymentStatusModel.php b/app/Models/PaymentStatusModel.php index d3932940..30cc6879 100644 --- a/app/Models/PaymentStatusModel.php +++ b/app/Models/PaymentStatusModel.php @@ -30,7 +30,7 @@ class PaymentStatusModel extends Model public function getPaymentData($fromDate, $toDate, $status) { - $builder = $this->db->table('payment_status')->select('payment_status.*,concat(customers.first_name," ",customers.last_name) as customer_name,books.short_code as scheme_name') + $builder = $this->db->table('payment_status')->select('payment_status.*,CONCAT(COALESCE(customers.first_name, ""), " ", COALESCE(customers.last_name, "")) AS customer_name,books.short_code as scheme_name') ->join('customers','customers.customer_id = payment_status.customer_id and customers.isactive = 1') ->join('books','books.book_id = payment_status.scheme_id and books.isactive = 1');