Added logs method in production report
This commit is contained in:
@@ -24,7 +24,6 @@ Artisan::command('inspire', function () {
|
|||||||
$productionRules = AlertMailRule::where('module', 'ProductionQuantities')
|
$productionRules = AlertMailRule::where('module', 'ProductionQuantities')
|
||||||
->where('rule_name', 'ProductionMail')
|
->where('rule_name', 'ProductionMail')
|
||||||
->select('plant', 'schedule_type')
|
->select('plant', 'schedule_type')
|
||||||
->select('plant', 'schedule_type')
|
|
||||||
->distinct()
|
->distinct()
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
@@ -32,7 +31,8 @@ Artisan::command('inspire', function () {
|
|||||||
$type = $rule->schedule_type;
|
$type = $rule->schedule_type;
|
||||||
$plantId = $rule->plant;
|
$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) {
|
switch ($type) {
|
||||||
case 'Live':
|
case 'Live':
|
||||||
|
|||||||
Reference in New Issue
Block a user