Update invoice data report references in command and scheduling logic
This commit is contained in:
@@ -37,7 +37,7 @@ class SendInvoiceDataReport extends Command
|
||||
|
||||
|
||||
// Fetch mail rules based on schedule type
|
||||
$mailRules = \App\Models\AlertMailRule::where('module', 'InvoiceValidation')
|
||||
$mailRules = \App\Models\AlertMailRule::where('module', 'InvoiceDataReport')
|
||||
->where('rule_name', 'InvoiceDataMail')
|
||||
->where('schedule_type', $scheduleType)
|
||||
->where('plant', $plantId)
|
||||
|
||||
Reference in New Issue
Block a user