Skip to content

Firefly III: a personal finances manager

Add filter for transfer type.

James Cole74f7c07a7647
diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.php
index 6944eb5f26..1515581961 100644
--- a/app/Support/Http/Controllers/PeriodOverview.php
+++ b/app/Support/Http/Controllers/PeriodOverview.php
@@ -208,12 +208,12 @@ trait PeriodOverview
foreach ($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;