1
0
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:
David Bomba 2019-05-15 15:19:18 +10:00
parent 5467fc64b1
commit b365d8dc6e
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,5 @@ class ApplyPaymentToInvoice implements ShouldQueue
$this->invoice->save();
/* Insert the ledger transaction */
UpdateCompanyLedgerWithPayment::dispatch($this->payment, $adjustment);
}
}

View File

@ -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,
],
];