Account show page fix typo
This commit is contained in:
parent
ce923d295b
commit
32fc579307
@ -37,7 +37,7 @@ class Accounts extends Controller
|
|||||||
// Handle transactions
|
// Handle transactions
|
||||||
$transactions = Transaction::with('account', 'category')->where('account_id', $account->id)->collect('paid_at');
|
$transactions = Transaction::with('account', 'category')->where('account_id', $account->id)->collect('paid_at');
|
||||||
|
|
||||||
$transfers = Transfer::with('transaction')->all()->filter(function ($transfer) use($account) {
|
$transfers = Transfer::with('transaction')->cursor()->filter(function ($transfer) use($account) {
|
||||||
if ($transfer->expense_account->id == $account->id || $transfer->income_account->id == $account->id) {
|
if ($transfer->expense_account->id == $account->id || $transfer->income_account->id == $account->id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user