1
0
forked from poc/pds

Added logs method in production report

This commit is contained in:
dhanabalan
2025-11-13 11:08:13 +05:30
parent b756a6f128
commit 00d236dfd5

View File

@@ -24,7 +24,6 @@ Artisan::command('inspire', function () {
$productionRules = AlertMailRule::where('module', 'ProductionQuantities')
->where('rule_name', 'ProductionMail')
->select('plant', 'schedule_type')
->select('plant', 'schedule_type')
->distinct()
->get();
@@ -32,7 +31,8 @@ Artisan::command('inspire', function () {
$type = $rule->schedule_type;
$plantId = $rule->plant;
$command = $schedule->command('send:production-report', [$type, $plantId]);
$command = $schedule->command('send:production-report', [$type, $plantId])
->appendOutputTo(storage_path('logs/scheduler.log'));
switch ($type) {
case 'Live':