formatting
This commit is contained in:
@ -41,7 +41,7 @@ class Invoices extends BulkAction
|
||||
$invoices = $this->getSelectedRecords($request);
|
||||
|
||||
foreach ($invoices as $invoice) {
|
||||
event(new PaymentReceived($invoice, []));
|
||||
event(new PaymentReceived($invoice));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ class PaymentReceived
|
||||
*
|
||||
* @param $invoice
|
||||
*/
|
||||
public function __construct($invoice, $request)
|
||||
public function __construct($invoice, $request = [])
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
$this->request = $request;
|
||||
|
@ -379,7 +379,7 @@ class Invoices extends Controller
|
||||
public function markPaid(Invoice $invoice)
|
||||
{
|
||||
try {
|
||||
event(new \App\Events\Sale\PaymentReceived($invoice, []));
|
||||
event(new \App\Events\Sale\PaymentReceived($invoice));
|
||||
|
||||
$message = trans('invoices.messages.marked_paid');
|
||||
|
||||
|
Reference in New Issue
Block a user