mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Wire up Activity Listeners for update/create invoice
This commit is contained in:
parent
5467fc64b1
commit
b365d8dc6e
@ -107,7 +107,5 @@ class ApplyPaymentToInvoice implements ShouldQueue
|
||||
|
||||
$this->invoice->save();
|
||||
|
||||
/* Insert the ledger transaction */
|
||||
UpdateCompanyLedgerWithPayment::dispatch($this->payment, $adjustment);
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,9 @@ use App\Events\Payment\PaymentWasCreated;
|
||||
use App\Events\User\UserCreated;
|
||||
use App\Listeners\Activity\CreatedClientActivity;
|
||||
use App\Listeners\Activity\PaymentCreatedActivity;
|
||||
use App\Listeners\Invoice\CreateInvoiceActivity;
|
||||
use App\Listeners\Invoice\CreateInvoiceInvitations;
|
||||
use App\Listeners\Invoice\UpdateInvoiceActivity;
|
||||
use App\Listeners\SendVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
|
||||
@ -64,10 +66,10 @@ class EventServiceProvider extends ServiceProvider
|
||||
CreateInvoiceInvitations::class,
|
||||
],
|
||||
InvoiceWasUpdated::class => [
|
||||
|
||||
UpdateInvoiceActivity::class,
|
||||
],
|
||||
InvoiceWasCreated::class => [
|
||||
|
||||
CreateInvoiceActivity::class,
|
||||
],
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user