mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 01:24:06 +00:00
Update family.rb (#1629)
Add where statement to account_transactions overview to only give transactions and not valuations Signed-off-by: Jasper Delahaije <47220315+Repsay@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user