From 32a66b20692d646e6125db514c37382b5e0fc948 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Mon, 2 Dec 2024 17:34:28 +0530 Subject: [PATCH] FIX_ISSUE IN PAYMENT FILTER IN REPORTS --- app/Models/HomeModel.php | 2 +- app/Views/received_payments_report.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/HomeModel.php b/app/Models/HomeModel.php index 8954c7ca..943d53c7 100755 --- a/app/Models/HomeModel.php +++ b/app/Models/HomeModel.php @@ -195,7 +195,7 @@ class HomeModel extends Model DATEDIFF(S.to_subscription, CURDATE()) as countdays, DATE_FORMAT(S.to_subscription, "%d/%m/%Y") as to_subscription_date_format, S.is_renew, - ( NHC.sent_time ) as email_last_notify_on,(select is_renew from subscription as sub where S.sub_id = sub.is_renew)as renewed') + ( NHC.sent_time ) as email_last_notify_on,(select is_renew from subscription as sub where S.sub_id = sub.is_renew LIMIT 1)as renewed') ->where('S.to_subscription >=', $now) ->where('S.to_subscription <=', $last30days) ->where('S.isactive', 1) diff --git a/app/Views/received_payments_report.php b/app/Views/received_payments_report.php index 4a6ce03d..a8b3c3e4 100644 --- a/app/Views/received_payments_report.php +++ b/app/Views/received_payments_report.php @@ -169,11 +169,10 @@ } $(document).on('click', '.payment-button', function () { - var paymentMethod = $(this).contents().first().text().trim().toUpperCase(); + var paymentMethod = $(this).contents().first().text().trim().toUpperCase().split(" ").join(""); if (!paymentMethod) { return; } - table.column(3) .search(paymentMethod, true, false) .draw();