Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add filter for transfer type.
James Cole74f7c07a7647
diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.phpindex 6944eb5f26..1515581961 100644--- a/app/Support/Http/Controllers/PeriodOverview.php+++ b/app/Support/Http/Controllers/PeriodOverview.php@@ -208,12 +208,12 @@ trait PeriodOverviewforeach ($transactions as $index => $item) {$date = Carbon::parse($item['date']);if ($date >= $start && $date <= $end) {- if ('away' === $direction && -1 === bccomp((string)$item['amount'], '0')) {+ if ('Transfer' === $item['type'] && 'away' === $direction && -1 === bccomp((string)$item['amount'], '0')) {$result[] = $item;continue;}- if ('in' === $direction && 1 === bccomp((string)$item['amount'], '0')) {+ if ('Transfer' === $item['type'] && 'in' === $direction && 1 === bccomp((string)$item['amount'], '0')) {$result[] = $item;continue;