Added unique constraint fro invoice mail report
This commit is contained in:
@@ -44,7 +44,10 @@ Artisan::command('inspire', function () {
|
||||
}
|
||||
|
||||
//Invoice report scheduling
|
||||
$invoiceRules = AlertMailRule::where('module', 'InvoiceValidation')->get();
|
||||
$invoiceRules = AlertMailRule::where('module', 'InvoiceValidation')
|
||||
->select('plant', 'schedule_type')
|
||||
->distinct()
|
||||
->get();
|
||||
|
||||
foreach ($invoiceRules as $rule) {
|
||||
$type = $rule->schedule_type;
|
||||
|
||||
Reference in New Issue
Block a user