FIX_ISSUE IN PAYMENT FILTER IN REPORTS

This commit is contained in:
Srinivas-Saravanan 2024-12-02 17:34:28 +05:30
parent ebdc6198b3
commit 32a66b2069
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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();