update daily_report
This commit is contained in:
parent
f122b78692
commit
07fa5eff07
@ -8,16 +8,17 @@ ini_set('log_errors', 1);
|
|||||||
$logFile = __DIR__ . '/../storage/cron_debug.log';
|
$logFile = __DIR__ . '/../storage/cron_debug.log';
|
||||||
ini_set('error_log', $logFile);
|
ini_set('error_log', $logFile);
|
||||||
|
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] Starting execution check\n", FILE_APPEND);
|
// Helper to log with timestamp
|
||||||
|
function cron_log($msg) {
|
||||||
|
global $logFile;
|
||||||
|
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] " . $msg . "\n", FILE_APPEND);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$settings = get_company_settings();
|
$settings = get_company_settings();
|
||||||
|
|
||||||
$debugMsg = "Settings retrieved: \n" . print_r($settings, true) . "\n";
|
|
||||||
file_put_contents($logFile, $debugMsg, FILE_APPEND);
|
|
||||||
|
|
||||||
if (empty($settings['whatsapp_report_enabled']) || empty($settings['whatsapp_report_number']) || empty($settings['whatsapp_report_time'])) {
|
if (empty($settings['whatsapp_report_enabled']) || empty($settings['whatsapp_report_number']) || empty($settings['whatsapp_report_time'])) {
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] Skipping: settings missing or disabled\n", FILE_APPEND);
|
// Silent exit if disabled or missing config
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +28,6 @@ try {
|
|||||||
$reportTime = $settings['whatsapp_report_time'];
|
$reportTime = $settings['whatsapp_report_time'];
|
||||||
|
|
||||||
$lastReportFile = __DIR__ . '/../storage/last_daily_report.txt';
|
$lastReportFile = __DIR__ . '/../storage/last_daily_report.txt';
|
||||||
|
|
||||||
$lastReportDate = file_exists($lastReportFile) ? trim(file_get_contents($lastReportFile)) : '';
|
$lastReportDate = file_exists($lastReportFile) ? trim(file_get_contents($lastReportFile)) : '';
|
||||||
|
|
||||||
$nowDt = new DateTime('now', new DateTimeZone($timezone));
|
$nowDt = new DateTime('now', new DateTimeZone($timezone));
|
||||||
@ -38,16 +38,77 @@ try {
|
|||||||
|
|
||||||
$diffToday = $nowDt->getTimestamp() - $targetTodayDt->getTimestamp();
|
$diffToday = $nowDt->getTimestamp() - $targetTodayDt->getTimestamp();
|
||||||
|
|
||||||
$logEntry = "Now: " . $nowDt->format('Y-m-d H:i:s') . " | Target: " . $targetTodayDt->format('Y-m-d H:i:s') . " | Diff: $diffToday | LastSent: $lastReportDate\n";
|
// Check if within 15 minutes (900 seconds) after the target time AND not sent today
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] " . $logEntry, FILE_APPEND);
|
|
||||||
|
|
||||||
if ($diffToday >= 0 && $diffToday <= 900 && $lastReportDate !== $nowDt->format('Y-m-d')) {
|
if ($diffToday >= 0 && $diffToday <= 900 && $lastReportDate !== $nowDt->format('Y-m-d')) {
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] Condition met: sending report\n", FILE_APPEND);
|
cron_log("Condition met: sending daily report for " . $nowDt->format('Y-m-d'));
|
||||||
// ... (rest of logic)
|
|
||||||
|
$pdo = db();
|
||||||
|
$today = $nowDt->format('Y-m-d');
|
||||||
|
|
||||||
|
// 1. Calculate Stats
|
||||||
|
// Total Revenue Today
|
||||||
|
$stmt = $pdo->prepare("SELECT SUM(total_amount) FROM orders WHERE DATE(created_at) = ? AND status != 'cancelled'");
|
||||||
|
$stmt->execute([$today]);
|
||||||
|
$revenueToday = $stmt->fetchColumn() ?: 0;
|
||||||
|
|
||||||
|
// Total Orders Today
|
||||||
|
$stmt = $pdo->prepare("SELECT COUNT(*) FROM orders WHERE DATE(created_at) = ? AND status != 'cancelled'");
|
||||||
|
$stmt->execute([$today]);
|
||||||
|
$ordersToday = $stmt->fetchColumn();
|
||||||
|
|
||||||
|
// Total Expenses Today
|
||||||
|
$stmt = $pdo->prepare("SELECT SUM(amount) FROM expenses WHERE DATE(expense_date) = ?");
|
||||||
|
$stmt->execute([$today]);
|
||||||
|
$expensesToday = $stmt->fetchColumn() ?: 0;
|
||||||
|
|
||||||
|
// Currency
|
||||||
|
$currency = $settings['currency_symbol'] ?? '$';
|
||||||
|
|
||||||
|
// 2. Format Message
|
||||||
|
$message = "๐
*Daily Report* ๐
\n";
|
||||||
|
$message .= "Date: " . $today . "\n\n";
|
||||||
|
$message .= "๐ฐ *Sales:* " . format_currency_simple($revenueToday, $settings) . "\n";
|
||||||
|
$message .= "๐งพ *Orders:* " . $ordersToday . "\n";
|
||||||
|
$message .= "๐ธ *Expenses:* " . format_currency_simple($expensesToday, $settings) . "\n";
|
||||||
|
$message .= "\n--------------------------\n";
|
||||||
|
$message .= "๐ค Auto-generated message";
|
||||||
|
|
||||||
|
// 3. Send Message
|
||||||
|
$wablas = new WablasService($pdo);
|
||||||
|
// Handle multiple recipients (comma separated)
|
||||||
|
$recipients = explode(',', $settings['whatsapp_report_number']);
|
||||||
|
$anySuccess = false;
|
||||||
|
|
||||||
|
foreach ($recipients as $recipient) {
|
||||||
|
$recipient = trim($recipient);
|
||||||
|
if (empty($recipient)) continue;
|
||||||
|
|
||||||
|
cron_log("Sending report to: " . $recipient);
|
||||||
|
$result = $wablas->sendMessage($recipient, $message);
|
||||||
|
|
||||||
|
if (!empty($result['success']) && $result['success'] == true) {
|
||||||
|
cron_log("Report sent successfully to " . $recipient);
|
||||||
|
$anySuccess = true;
|
||||||
} else {
|
} else {
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] Condition not met: skipping\n", FILE_APPEND);
|
cron_log("Failed to send report to " . $recipient . ": " . ($result['message'] ?? 'Unknown error'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($anySuccess) {
|
||||||
|
file_put_contents($lastReportFile, $today);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Else: silent skip
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
file_put_contents($logFile, "[" . date('Y-m-d H:i:s') . "] CRITICAL ERROR: " . $e->getMessage() . "\n", FILE_APPEND);
|
cron_log("CRITICAL ERROR: " . $e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
function format_currency_simple($amount, $settings) {
|
||||||
|
$symbol = $settings['currency_symbol'] ?? '$';
|
||||||
|
$decimals = (int)($settings['currency_decimals'] ?? 2);
|
||||||
|
$position = $settings['currency_position'] ?? 'before';
|
||||||
|
|
||||||
|
$formatted = number_format((float)$amount, $decimals);
|
||||||
|
return ($position === 'after') ? "$formatted $symbol" : "$symbol $formatted";
|
||||||
}
|
}
|
||||||
@ -21564,3 +21564,96 @@ Array
|
|||||||
|
|
||||||
[2026-03-25 06:05:01] Now: 2026-03-25 06:05:01 | Target: 2026-03-25 23:59:00 | Diff: -64439 | LastSent:
|
[2026-03-25 06:05:01] Now: 2026-03-25 06:05:01 | Target: 2026-03-25 23:59:00 | Diff: -64439 | LastSent:
|
||||||
[2026-03-25 06:05:01] Condition not met: skipping
|
[2026-03-25 06:05:01] Condition not met: skipping
|
||||||
|
[2026-03-25 06:06:01] Starting execution check
|
||||||
|
Settings retrieved:
|
||||||
|
Array
|
||||||
|
(
|
||||||
|
[id] => 1
|
||||||
|
[company_name] => Al-Bidar Cafe
|
||||||
|
[address] => al -hamra
|
||||||
|
[phone] => 99359472
|
||||||
|
[email] => aalabry@gmail.com
|
||||||
|
[vat_rate] => 5.00
|
||||||
|
[currency_symbol] => OMR
|
||||||
|
[currency_decimals] => 3
|
||||||
|
[logo_url] => assets/images/company/logo_699d0d4e79490.png
|
||||||
|
[favicon_url] => assets/images/company/favicon_699d0d4e7a2f6.png
|
||||||
|
[ctr_number] =>
|
||||||
|
[vat_number] => OM99888
|
||||||
|
[updated_at] => 2026-03-25 01:59:39
|
||||||
|
[auto_backup_enabled] => 0
|
||||||
|
[last_auto_backup] => 2026-02-24 05:08:07
|
||||||
|
[commission_enabled] => 0
|
||||||
|
[currency_position] => after
|
||||||
|
[timezone] => Asia/Muscat
|
||||||
|
[whatsapp_report_number] => 96897417667,96899359472
|
||||||
|
[whatsapp_report_time] => 23:59:00
|
||||||
|
[whatsapp_report_enabled] => 1
|
||||||
|
)
|
||||||
|
|
||||||
|
[2026-03-25 06:06:01] Now: 2026-03-25 06:06:01 | Target: 2026-03-25 23:59:00 | Diff: -64379 | LastSent:
|
||||||
|
[2026-03-25 06:06:01] Condition not met: skipping
|
||||||
|
[2026-03-25 06:06:54] Starting execution check
|
||||||
|
[2026-03-25 06:06:54] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:06:54] Now: 2026-03-25 06:06:54 | Target: 2026-03-25 23:59:00 | Diff: -64326 | LastSent:
|
||||||
|
[2026-03-25 06:06:54] Condition not met: skipping (Diff: -64326, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:07:02] Starting execution check
|
||||||
|
[2026-03-25 06:07:02] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:07:02] Now: 2026-03-25 06:07:02 | Target: 2026-03-25 23:59:00 | Diff: -64318 | LastSent:
|
||||||
|
[2026-03-25 06:07:02] Condition not met: skipping (Diff: -64318, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:08:01] Starting execution check
|
||||||
|
[2026-03-25 06:08:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:08:01] Now: 2026-03-25 06:08:01 | Target: 2026-03-25 23:59:00 | Diff: -64259 | LastSent:
|
||||||
|
[2026-03-25 06:08:01] Condition not met: skipping (Diff: -64259, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:09:01] Starting execution check
|
||||||
|
[2026-03-25 06:09:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:09:01] Now: 2026-03-25 06:09:01 | Target: 2026-03-25 23:59:00 | Diff: -64199 | LastSent:
|
||||||
|
[2026-03-25 06:09:01] Condition not met: skipping (Diff: -64199, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:10:01] Starting execution check
|
||||||
|
[2026-03-25 06:10:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:10:01] Now: 2026-03-25 06:10:01 | Target: 2026-03-25 23:59:00 | Diff: -64139 | LastSent:
|
||||||
|
[2026-03-25 06:10:01] Condition not met: skipping (Diff: -64139, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:11:01] Starting execution check
|
||||||
|
[2026-03-25 06:11:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:11:01] Now: 2026-03-25 06:11:01 | Target: 2026-03-25 23:59:00 | Diff: -64079 | LastSent:
|
||||||
|
[2026-03-25 06:11:01] Condition not met: skipping (Diff: -64079, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:12:01] Starting execution check
|
||||||
|
[2026-03-25 06:12:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:12:01] Now: 2026-03-25 06:12:01 | Target: 2026-03-25 23:59:00 | Diff: -64019 | LastSent:
|
||||||
|
[2026-03-25 06:12:01] Condition not met: skipping (Diff: -64019, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:12:46] Starting execution check (FORCED MANUAL RUN)
|
||||||
|
[2026-03-25 06:12:46] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:12:46] Forcing report generation for date: 2026-02-24
|
||||||
|
[2026-03-25 06:12:46] Condition met (FORCED): sending report
|
||||||
|
[2026-03-25 06:12:46] Sending to: 96897417667 Message: ๐
*Daily Report* ๐
Date: 2026-02-24 ๐ฐ *Sales:* 308.060 OMR ๐งพ *Orders:* 14 ๐ธ *Expenses:* 0.000 OMR -------------------------- ๐ค Auto-generated message (TEST RUN)
|
||||||
|
[2026-03-25 06:12:47] Failed to send report to 96897417667: HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key Response: {"success":false,"message":"HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key"}
|
||||||
|
[2026-03-25 06:12:47] Sending to: 96899359472 Message: ๐
*Daily Report* ๐
Date: 2026-02-24 ๐ฐ *Sales:* 308.060 OMR ๐งพ *Orders:* 14 ๐ธ *Expenses:* 0.000 OMR -------------------------- ๐ค Auto-generated message (TEST RUN)
|
||||||
|
[2026-03-25 06:12:47] Failed to send report to 96899359472: HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key Response: {"success":false,"message":"HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key"}
|
||||||
|
[2026-03-25 06:13:01] Starting execution check (FORCED MANUAL RUN)
|
||||||
|
[2026-03-25 06:13:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:13:01] Forcing report generation for date: 2026-02-24
|
||||||
|
[2026-03-25 06:13:01] Condition met (FORCED): sending report
|
||||||
|
[2026-03-25 06:13:01] Sending to: 96897417667 Message: ๐
*Daily Report* ๐
Date: 2026-02-24 ๐ฐ *Sales:* 308.060 OMR ๐งพ *Orders:* 14 ๐ธ *Expenses:* 0.000 OMR -------------------------- ๐ค Auto-generated message (TEST RUN)
|
||||||
|
[2026-03-25 06:13:01] Failed to send report to 96897417667: HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key Response: {"success":false,"message":"HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key"}
|
||||||
|
[2026-03-25 06:13:01] Sending to: 96899359472 Message: ๐
*Daily Report* ๐
Date: 2026-02-24 ๐ฐ *Sales:* 308.060 OMR ๐งพ *Orders:* 14 ๐ธ *Expenses:* 0.000 OMR -------------------------- ๐ค Auto-generated message (TEST RUN)
|
||||||
|
[2026-03-25 06:13:02] Failed to send report to 96899359472: HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key Response: {"success":false,"message":"HTTP Error 403: Access denied: Your IP (34.16.53.23) is not authorized. Or need secret key"}
|
||||||
|
[2026-03-25 06:14:01] Starting execution check
|
||||||
|
[2026-03-25 06:14:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:14:01] Now: 2026-03-25 06:14:01 | Target: 2026-03-25 23:59:00 | Diff: -63899 | LastSent:
|
||||||
|
[2026-03-25 06:14:01] Condition not met: skipping (Diff: -63899, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:15:01] Starting execution check
|
||||||
|
[2026-03-25 06:15:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:15:01] Now: 2026-03-25 06:15:01 | Target: 2026-03-25 23:59:00 | Diff: -63839 | LastSent:
|
||||||
|
[2026-03-25 06:15:01] Condition not met: skipping (Diff: -63839, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:16:01] Starting execution check
|
||||||
|
[2026-03-25 06:16:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:16:01] Now: 2026-03-25 06:16:01 | Target: 2026-03-25 23:59:00 | Diff: -63779 | LastSent:
|
||||||
|
[2026-03-25 06:16:01] Condition not met: skipping (Diff: -63779, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:17:01] Starting execution check
|
||||||
|
[2026-03-25 06:17:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:17:01] Now: 2026-03-25 06:17:01 | Target: 2026-03-25 23:59:00 | Diff: -63719 | LastSent:
|
||||||
|
[2026-03-25 06:17:01] Condition not met: skipping (Diff: -63719, LastSent: , Target: 23:59)
|
||||||
|
[2026-03-25 06:18:01] Starting execution check
|
||||||
|
[2026-03-25 06:18:01] Settings retrieved: {"id":1,"company_name":"Al-Bidar Cafe","address":"al -hamra","phone":"99359472","email":"aalabry@gmail.com","vat_rate":"5.00","currency_symbol":"OMR","currency_decimals":3,"logo_url":"assets\/images\/company\/logo_699d0d4e79490.png","favicon_url":"assets\/images\/company\/favicon_699d0d4e7a2f6.png","ctr_number":"","vat_number":"OM99888","updated_at":"2026-03-25 01:59:39","auto_backup_enabled":0,"last_auto_backup":"2026-02-24 05:08:07","commission_enabled":0,"currency_position":"after","timezone":"Asia\/Muscat","whatsapp_report_number":"96897417667,96899359472","whatsapp_report_time":"23:59:00","whatsapp_report_enabled":1}
|
||||||
|
[2026-03-25 06:18:01] Now: 2026-03-25 06:18:01 | Target: 2026-03-25 23:59:00 | Diff: -63659 | LastSent:
|
||||||
|
[2026-03-25 06:18:01] Condition not met: skipping (Diff: -63659, LastSent: , Target: 23:59)
|
||||||
|
|||||||
Loadingโฆ
x
Reference in New Issue
Block a user