minor changes made to make compatible with code structure
This commit is contained in:
parent
4c988cb373
commit
d3e7b863da
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Events\Purchase\BillReminded;
|
||||
use App\Models\Common\Company;
|
||||
use App\Models\Purchase\Bill;
|
||||
use App\Utilities\Overrider;
|
||||
@ -77,7 +78,7 @@ class BillReminder extends Command
|
||||
$bills = Bill::with('contact')->accrued()->notPaid()->due($date)->cursor();
|
||||
|
||||
foreach ($bills as $bill) {
|
||||
event(new \App\Events\Purchase\BillReminding($bill));
|
||||
event(new BillReminded($bill));
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ namespace App\Events\Purchase;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class BillReminding
|
||||
class BillReminded
|
||||
{
|
||||
use SerializesModels;
|
||||
|
@ -4,7 +4,7 @@ namespace App\Events\Sale;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceReminding
|
||||
class InvoiceReminded
|
||||
{
|
||||
use SerializesModels;
|
||||
|
@ -5,7 +5,7 @@ namespace App\Listeners\Purchase;
|
||||
use App\Events\Purchase\BillReminding as Event;
|
||||
use App\Notifications\Purchase\Bill as Notification;
|
||||
|
||||
class SendBillRemindingNotification
|
||||
class SendBillReminderNotification
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
@ -5,7 +5,7 @@ namespace App\Listeners\Sale;
|
||||
use App\Events\Sale\InvoiceReminding as Event;
|
||||
use App\Notifications\Sale\Invoice as Notification;
|
||||
|
||||
class SendInvoiceRemindingNotification
|
||||
class SendInvoiceReminderNotification
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
@ -40,7 +40,7 @@ class Event extends Provider
|
||||
'App\Listeners\Purchase\SendBillRecurringNotification',
|
||||
],
|
||||
'App\Events\Purchase\BillReminding' => [
|
||||
'App\Listeners\Purchase\SendBillRemindingNotification',
|
||||
'App\Listeners\Purchase\SendBillReminderNotification',
|
||||
],
|
||||
'App\Events\Sale\PaymentReceived' => [
|
||||
'App\Listeners\Sale\CreateInvoiceTransaction',
|
||||
@ -63,7 +63,7 @@ class Event extends Provider
|
||||
'App\Listeners\Sale\SendInvoiceRecurringNotification',
|
||||
],
|
||||
'App\Events\Sale\InvoiceReminding' => [
|
||||
'App\Listeners\Sale\SendInvoiceRemindingNotification',
|
||||
'App\Listeners\Sale\SendInvoiceReminderNotification',
|
||||
],
|
||||
'App\Events\Menu\AdminCreated' => [
|
||||
'App\Listeners\Menu\AddAdminItems',
|
||||
|
Loading…
x
Reference in New Issue
Block a user