Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fine tune query.
James Colec38c9608da37
diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.phpindex ea10847ce4..b41ac1928f 100644--- a/app/Helpers/Report/ReportQuery.php+++ b/app/Helpers/Report/ReportQuery.php@@ -416,6 +416,8 @@ class ReportQuery implements ReportQueryInterface->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id');if ($showSharedReports === false) {+ // get all withdrawals not from a shared accounts+ // and all transfers to a shared account$query->where(function ($query) {$query->where(@@ -432,6 +434,9 @@ class ReportQuery implements ReportQueryInterface);});+ } else {+ // any withdrawal goes:+ $query->where('transaction_types.type', 'Withdrawal');}$query->before($end)->after($start)