FIX_ISSUE IN PAYMENT FILTER IN REPORTS
This commit is contained in:
parent
ebdc6198b3
commit
32a66b2069
@ -195,7 +195,7 @@ class HomeModel extends Model
|
|||||||
DATEDIFF(S.to_subscription, CURDATE()) as countdays,
|
DATEDIFF(S.to_subscription, CURDATE()) as countdays,
|
||||||
DATE_FORMAT(S.to_subscription, "%d/%m/%Y") as to_subscription_date_format,
|
DATE_FORMAT(S.to_subscription, "%d/%m/%Y") as to_subscription_date_format,
|
||||||
S.is_renew,
|
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 >=', $now)
|
||||||
->where('S.to_subscription <=', $last30days)
|
->where('S.to_subscription <=', $last30days)
|
||||||
->where('S.isactive', 1)
|
->where('S.isactive', 1)
|
||||||
|
|||||||
@ -169,11 +169,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '.payment-button', function () {
|
$(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) {
|
if (!paymentMethod) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.column(3)
|
table.column(3)
|
||||||
.search(paymentMethod, true, false)
|
.search(paymentMethod, true, false)
|
||||||
.draw();
|
.draw();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user