added invoice model to invoice created event (#3079)
* added model to InvoiceCreatedEvent * allow to switch formatter locale
This commit is contained in:
@@ -376,7 +376,7 @@ final class ServiceInvoice
|
||||
$this->markEntriesAsExported($model->getEntries());
|
||||
}
|
||||
|
||||
$dispatcher->dispatch(new InvoiceCreatedEvent($invoice));
|
||||
$dispatcher->dispatch(new InvoiceCreatedEvent($invoice, $model));
|
||||
|
||||
return $invoice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user