Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Committed bad code.
James Cole017b1a481a34
diff --git a/app/Support/Models/TransactionJournalSupport.php b/app/Support/Models/TransactionJournalSupport.phpindex e1d928bef4..513fec2623 100644--- a/app/Support/Models/TransactionJournalSupport.php+++ b/app/Support/Models/TransactionJournalSupport.php@@ -163,9 +163,7 @@ class TransactionJournalSupport extends Modelif ($cache->has()) {return $cache->get();}- $transactions = $journal->transactions()- ->whereNull('transactions.deleted_at')- ->where('transactions.amount', '>', 0)->orderBy('transactions.account_id')->with('account')->get();+ $transactions = $journal->transactions()->where('amount', '>', 0)->orderBy('transactions.account_id')->with('account')->get();$list = new Collection;/** @var Transaction $t */foreach ($transactions as $t) {@@ -257,10 +255,7 @@ class TransactionJournalSupport extends Modelif ($cache->has()) {return $cache->get();}- $transactions = $journal->transactions()- ->whereNull('transactions.deleted_at')- ->where('transactions.amount', '<', 0)- ->orderBy('transactions.account_id')->with('account')->get();+ $transactions = $journal->transactions()->where('amount', '<', 0)->orderBy('transactions.account_id')->with('account')->get();$list = new Collection;/** @var Transaction $t */foreach ($transactions as $t) {