diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php
index 38243a77..72fc4225 100755
--- a/app/Controllers/Notifications.php
+++ b/app/Controllers/Notifications.php
@@ -598,12 +598,12 @@ class Notifications extends BaseController
$notification = new NotificationHelper();
if (empty($queryResult)) {
$this->logger->error("There is no customer expiring on date:{$newDate}");
+ echo " There is no customer expiring. till dated :{$newDate}";
return;
}
$emailTemplateName = $NotificationModel->getTempName(EXPIRAY_NOTIFY_TEMPLATE_EMAIL);
- echo "Started.
Dated = ".$newDate."
There are ".count($queryResult)." persons
";
- //print_r($queryResult);die();
+ echo "Started.
Customer expiring. till dated = ".$newDate."
There are ".count($queryResult)." persons
";
foreach ($queryResult as $inx => $row) {
$status = $row['status'];
$userFirstName = $row['first_name'];
@@ -621,7 +621,7 @@ class Notifications extends BaseController
if ($status === 'Approved') {
# EXPIRAY_NOTIFY_TEMPLATE_EMAIL
$emailTemplateName = $NotificationModel->getTempName(EXPIRAY_NOTIFY_TEMPLATE_EMAIL);
- echo "Person Name :".$fullName."
";
+ echo "#".$customerId." - Person Name :".$fullName."
";
if (count($emailTemplateName) && !empty($emailTemplateName)) {
$campaign_id = 1;
# Insertion on History Email Means Campaign ID 1 Hardcoded
@@ -637,7 +637,7 @@ class Notifications extends BaseController
$emailContent = str_replace("{SCHEME_NAME}", $schemename, $emailContent);
}
if (isset($expirydate)) {
- $expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
+ $expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
$emailContent = str_replace("{EXPIRY_DATE}", $expiryon, $emailContent);
}
if (isset($membership_id)) {
@@ -735,7 +735,7 @@ class Notifications extends BaseController
$whatsappContent = str_replace("{SCHEME_NAME}", $schemename, $whatsappContent);
}
if (isset($expirydate)) {
- $expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
+ $expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
$whatsappContent = str_replace("{EXPIRY_DATE}", $expiryon, $whatsappContent);
}
if (isset($customerId)) {