Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Expand query to catch all expenses.
James Cole9bd1503cb46a
diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.phpindex 5f39c72dd0..e97e4ec370 100644--- a/app/Helpers/Report/ReportQuery.php+++ b/app/Helpers/Report/ReportQuery.php@@ -383,6 +383,14 @@ class ReportQuery implements ReportQueryInterface$q->where('acm_from.data', '!=', '"sharedAsset"');});+ // OR transfers from a NOT shared account to a shared account.+ $query->orWhere(+ function (Builder $q) { // and transfers from a shared account to a not-shared account.+ $q->where('transaction_types.type', TransactionType::TRANSFER);+ $q->where('acm_to.data', '!=', '"sharedAsset"');+ $q->where('acm_from.data', '=', '"sharedAsset"');+ }+ );});