mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Net worth calculation (#508)
* Add classification generated column to account * Add basic net worth calculation * Add net worth tests * Fix lint errors
This commit is contained in:
parent
19f15e9391
commit
facd74f733
12 changed files with 156 additions and 40 deletions
10
test/fixtures/accounts.yml
vendored
10
test/fixtures/accounts.yml
vendored
|
@ -1,29 +1,27 @@
|
|||
# No transactions, no valuations, just a generic account
|
||||
generic:
|
||||
family: dylan_family
|
||||
name: No history, generic account
|
||||
balance: 1200
|
||||
|
||||
# Account with only valuations
|
||||
collectable:
|
||||
family: dylan_family
|
||||
name: Collectable Account
|
||||
balance: 550
|
||||
accountable_type: Account::OtherAsset
|
||||
|
||||
# Account with only transactions
|
||||
checking:
|
||||
family: dylan_family
|
||||
name: Checking Account
|
||||
balance: 5000
|
||||
accountable_type: Account::Depository
|
||||
|
||||
# Account with both transactions and valuations
|
||||
savings_with_valuation_overrides:
|
||||
family: dylan_family
|
||||
name: Savings account with valuation overrides
|
||||
balance: 20000
|
||||
accountable_type: Account::Depository
|
||||
|
||||
# Liability account
|
||||
credit_card:
|
||||
family: dylan_family
|
||||
name: Credit Card
|
||||
balance: 1000
|
||||
accountable_type: Account::Credit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue