mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:04:30 -04:00
Fire invoice observer for invoice created from recurring
This commit is contained in:
parent
64aa4fe00f
commit
1d66cf3772
@ -120,6 +120,7 @@ class SendRecurring implements ShouldQueue
|
||||
|
||||
*/
|
||||
|
||||
event('eloquent.created: App\Models\Invoice', $invoice);
|
||||
|
||||
//Admin notification for recurring invoice sent.
|
||||
if ($invoice->invitations->count() >= 1 ) {
|
||||
|
@ -29,6 +29,7 @@ class InvoiceObserver
|
||||
*/
|
||||
public function created(Invoice $invoice)
|
||||
{
|
||||
nlog("ppo0");
|
||||
|
||||
$subscriptions = Webhook::where('company_id', $invoice->company_id)
|
||||
->where('event_id', Webhook::EVENT_CREATE_INVOICE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user