From 3dccfe78f801c4d7f1819313d928794868ee40b7 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Mon, 23 Dec 2024 15:06:48 +0530 Subject: [PATCH] FIX_REMOVE VALIDATION ON LINKS --- app/Controllers/Notifications.php | 8 ++++---- app/Models/InvoiceModel.php | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index d633fdbe..e7e44c89 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -573,10 +573,10 @@ class Notifications extends BaseController public function getExpCustomerDetail($window_time = null,$to_time = null) { // dd($window_time); - $valid_dates = [0,1,7,15,30]; - if(!in_array($window_time,$valid_dates) ){ - return "Please enter a valid notification period. Accepted values are 0, 7, 15, or 30 days."; - } + // $valid_dates = [0,1,7,15,30]; + // if(!in_array($window_time,$valid_dates) ){ + // return "Please enter a valid notification period. Accepted values are 0, 7, 15, or 30 days."; + // } $NotificationModel = new NotificationModel(); $this->update_expired_members(); $response ="
";// $response = "
 Hi, Started. 
"; diff --git a/app/Models/InvoiceModel.php b/app/Models/InvoiceModel.php index b7e97f61..6b41daf2 100755 --- a/app/Models/InvoiceModel.php +++ b/app/Models/InvoiceModel.php @@ -128,6 +128,7 @@ public function getSubscriptionInvoiceDetail($where) public function getJoinedData($where, $orderby = []) { + // dd($where); $query = $this->db->table($this->table.' as I' ) ->join('customers as C', 'C.customer_id = I.customer_id', 'left') ->join('subscription as S', 'S.invoice_id = I.invoice_id', 'left')