Return list of bank transactions

This commit is contained in:
David Bomba 2022-10-24 21:23:52 +11:00
parent 049da325af
commit 9a8468906a

View File

@ -111,7 +111,7 @@ class MatchBankTransactions implements ShouldQueue
$this->matchExpense($input); $this->matchExpense($input);
} }
return $this->bts; return BankTransaction::whereIn('id', $this->bts);
} }
@ -165,7 +165,7 @@ class MatchBankTransactions implements ShouldQueue
} }
$this->bts->push($this->bt); $this->bts->push($this->bt->id);
return $this; return $this;
} }
@ -192,7 +192,7 @@ class MatchBankTransactions implements ShouldQueue
$this->bt->status_id = BankTransaction::STATUS_CONVERTED; $this->bt->status_id = BankTransaction::STATUS_CONVERTED;
$this->bt->save(); $this->bt->save();
$this->bts->push($this->bt); $this->bts->push($this->bt->id);
return $this; return $this;
} }