Refactor for bank transactions

This commit is contained in:
David Bomba 2022-09-23 12:38:24 +10:00
parent 268ad71bfb
commit f2ca50a0ff

View File

@ -284,7 +284,7 @@ class MatchBankTransactions implements ShouldQueue
event(new PaymentWasCreated($payment, $payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
event(new InvoiceWasPaid($this->invoice, $payment, $payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
$this->bt->invoice_id = collect($invoices)->pluck('hashed_id')->implode(',');
$this->bt->invoice_ids = collect($invoices)->pluck('hashed_id')->implode(',');
$this->bt->status_id = BankTransaction::STATUS_CONVERTED;
$this->bt->save();
}