Merge branch 'uat' of bitbucket.org:venbainformationtechnology/vb_book into uat
This commit is contained in:
commit
1b3c9b8520
@ -383,7 +383,7 @@ class Notifications extends BaseController
|
|||||||
$ExpCustomerDetail = $NotificationModel->getExpDate(); // Retrieve the stored query
|
$ExpCustomerDetail = $NotificationModel->getExpDate(); // Retrieve the stored query
|
||||||
if (empty($ExpCustomerDetail)) {
|
if (empty($ExpCustomerDetail)) {
|
||||||
|
|
||||||
$this->logger->info('There is no query');
|
$this->logger->info('No customer group found by the name of EXPIRYDATE');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//Step 3: Replace the placeholder WINDOW_TIME with the user-provided value
|
//Step 3: Replace the placeholder WINDOW_TIME with the user-provided value
|
||||||
@ -399,14 +399,14 @@ class Notifications extends BaseController
|
|||||||
$notification = new NotificationHelper();
|
$notification = new NotificationHelper();
|
||||||
if (empty($queryResult)) {
|
if (empty($queryResult)) {
|
||||||
|
|
||||||
$this->logger->info("There is no data against customer on given date:{$newDate}");
|
$this->logger->info("There is no customer expiring on date:{$newDate}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach ($queryResult as $row) {
|
foreach ($queryResult as $row) {
|
||||||
$templateName = $NotificationModel->getTempName();
|
$templateName = $NotificationModel->getTempName();
|
||||||
if (empty($templateName)) {
|
if (empty($templateName)) {
|
||||||
|
|
||||||
$this->logger->info('There is no template found');
|
$this->logger->info('There is no template found by the name of EXPIRAY_NOTIFY_TEMPLATE');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$userFirstName = $row['first_name'];
|
$userFirstName = $row['first_name'];
|
||||||
|
|||||||
@ -150,7 +150,7 @@ public function customerGroupQueryExecution($queries){
|
|||||||
{
|
{
|
||||||
$db = \Config\Database::connect();
|
$db = \Config\Database::connect();
|
||||||
|
|
||||||
$query = "SELECT * FROM customer_groups WHERE group_name = 'EXPIRYDAT'";
|
$query = "SELECT * FROM customer_groups WHERE group_name = 'EXPIRYDATE'";
|
||||||
|
|
||||||
$result = $db->query($query)->getResultArray();
|
$result = $db->query($query)->getResultArray();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user