Merge pull request #4317 from beganovich/v5-pass-correct-company
(v5) Pass correct company to WebhookHandler for invoices
This commit is contained in:
commit
eb9e1c07e6
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class InvoiceObserver
|
|||
*/
|
||||
public function created(Invoice $invoice)
|
||||
{
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice, $invoice->expense);
|
||||
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice, $invoice->company);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue