mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Multi-currency part 1 (#542)
* Add family snapshots table * Add snapshot method, clean up family expected results * Remove old sync trigger
This commit is contained in:
parent
1cdf5ea6a7
commit
c60ddaec1d
9 changed files with 169 additions and 141 deletions
|
@ -3,9 +3,10 @@ class PagesController < ApplicationController
|
|||
before_action :authenticate_user!
|
||||
|
||||
def dashboard
|
||||
@asset_series = Current.family.asset_series(@period)
|
||||
@liability_series = Current.family.liability_series(@period)
|
||||
@net_worth_series = Current.family.net_worth_series(@period)
|
||||
snapshot = Current.family.snapshot(@period)
|
||||
@net_worth_series = snapshot[:net_worth_series]
|
||||
@asset_series = snapshot[:asset_series]
|
||||
@liability_series = snapshot[:liability_series]
|
||||
@account_groups = Current.family.accounts.by_group(@period)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue