Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Update family.rb (#1629)

Jasper Delahaijeaac9e5eca2ec
diff --git a/app/models/family.rb b/app/models/family.rb
index 8649cea1..fef014fe 100644
--- a/app/models/family.rb
+++ b/app/models/family.rb
@@ -110,6 +110,7 @@ class Family < ApplicationRecord
)
.where("account_entries.date >= ?", period.date_range.begin)
.where("account_entries.date <= ?", period.date_range.end)
+ .where("account_entries.entryable_type = 'Account::Transaction'")
.where("transfers.id IS NULL")
.group("accounts.id")
.having("SUM(ABS(account_entries.amount)) > 0")