Schedule List issues resolved
This commit is contained in:
@@ -11,7 +11,7 @@ class ScheduleList
|
|||||||
{
|
{
|
||||||
// Invoice Report Scheduling
|
// Invoice Report Scheduling
|
||||||
$scheduleType = AlertMailRule::where('module', 'InvoiceValidation')
|
$scheduleType = AlertMailRule::where('module', 'InvoiceValidation')
|
||||||
->where('rule_name', 'InvoiceMailAlert')
|
->where('rule_name', 'InvoiceMail')
|
||||||
->value('schedule_type');
|
->value('schedule_type');
|
||||||
|
|
||||||
switch ($scheduleType) {
|
switch ($scheduleType) {
|
||||||
@@ -32,9 +32,54 @@ class ScheduleList
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$SerialscheduleType = AlertMailRule::where('module', 'InvoiceValidation')
|
||||||
|
->where('rule_name', 'SerialInvoiceMail')
|
||||||
|
->value('schedule_type');
|
||||||
|
|
||||||
|
switch ($SerialscheduleType) {
|
||||||
|
case 'Live':
|
||||||
|
$schedule->command('send:invoice-report')->everyMinute()->runInBackground();
|
||||||
|
break;
|
||||||
|
case 'Hourly':
|
||||||
|
$schedule->command('send:invoice-report')->hourly()->runInBackground();
|
||||||
|
break;
|
||||||
|
// case 'Daily':
|
||||||
|
// $schedule->command('send:invoice-report')->daily()->runInBackground(); //->dailyAt('07:59')
|
||||||
|
// break;
|
||||||
|
case 'Daily':
|
||||||
|
$schedule->command('send:invoice-report')->dailyAt('07:59')->runInBackground(); //->dailyAt('07:59')
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$schedule->command('send:invoice-report')->hourly()->runInBackground();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$materialscheduleType = AlertMailRule::where('module', 'InvoiceValidation')
|
||||||
|
->where('rule_name', 'MaterialInvoiceMail')
|
||||||
|
->value('schedule_type');
|
||||||
|
|
||||||
|
switch ($materialscheduleType) {
|
||||||
|
case 'Live':
|
||||||
|
$schedule->command('send:invoice-report')->everyMinute()->runInBackground();
|
||||||
|
break;
|
||||||
|
case 'Hourly':
|
||||||
|
$schedule->command('send:invoice-report')->hourly()->runInBackground();
|
||||||
|
break;
|
||||||
|
// case 'Daily':
|
||||||
|
// $schedule->command('send:invoice-report')->daily()->runInBackground(); //->dailyAt('07:59')
|
||||||
|
// break;
|
||||||
|
case 'Daily':
|
||||||
|
$schedule->command('send:invoice-report')->dailyAt('07:59')->runInBackground(); //->dailyAt('07:59')
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$schedule->command('send:invoice-report')->hourly()->runInBackground();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Production Report Scheduling
|
// Production Report Scheduling
|
||||||
$productionScheduleType = AlertMailRule::where('module', 'ProductionQuantities')
|
$productionScheduleType = AlertMailRule::where('module', 'ProductionQuantities')
|
||||||
->where('rule_name', 'ProductionMailAlert')
|
->where('rule_name', 'ProductionMail')
|
||||||
->value('schedule_type');
|
->value('schedule_type');
|
||||||
|
|
||||||
switch ($productionScheduleType) {
|
switch ($productionScheduleType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user