minor changes made to make compatible with code structure

This commit is contained in:
Sevan Nerse
2020-04-15 19:41:01 +03:00
parent 4c988cb373
commit d3e7b863da
7 changed files with 10 additions and 8 deletions

View File

@ -2,6 +2,7 @@
namespace App\Console\Commands;
use App\Events\Sale\InvoiceReminded;
use App\Models\Common\Company;
use App\Models\Sale\Invoice;
use App\Utilities\Overrider;
@ -77,7 +78,7 @@ class InvoiceReminder extends Command
$invoices = Invoice::with('contact')->accrued()->notPaid()->due($date)->cursor();
foreach ($invoices as $invoice) {
event(new \App\Events\Sale\InvoiceReminding($invoice));
event(new InvoiceReminded($invoice));
}
}
}