mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
Transaction transfers, payments, and matching (#883)
* Add transfer model and clean up family snapshot fixtures * Ignore transfers in income and expense snapshots * Add transfer validations * Implement basic transfer matching UI * Fix merge conflicts * Add missing translations * Tweak selection states for transfer types * Add missing i18n translation
This commit is contained in:
parent
b462bc8f8c
commit
ca39b26070
57 changed files with 991 additions and 427 deletions
3
test/fixtures/account/credits.yml
vendored
3
test/fixtures/account/credits.yml
vendored
|
@ -1,2 +1 @@
|
|||
one:
|
||||
id: "123e4567-e89b-12d3-a456-426614174003"
|
||||
credit_one: { }
|
||||
|
|
12
test/fixtures/account/cryptos.yml
vendored
12
test/fixtures/account/cryptos.yml
vendored
|
@ -1,11 +1 @@
|
|||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the "{}" from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
# one: {}
|
||||
# column: value
|
||||
#
|
||||
# two: {}
|
||||
# column: value
|
||||
one: { }
|
12
test/fixtures/account/depositories.yml
vendored
12
test/fixtures/account/depositories.yml
vendored
|
@ -1,8 +1,4 @@
|
|||
checking:
|
||||
id: "123e4567-e89b-12d3-a456-426614174000"
|
||||
savings:
|
||||
id: "123e4567-e89b-12d3-a456-426614174001"
|
||||
eur_checking:
|
||||
id: "123e4567-e89b-12d3-a456-426614174004"
|
||||
multi_currency:
|
||||
id: "123e4567-e89b-12d3-a456-426614174005"
|
||||
depository_checking: { }
|
||||
depository_savings: { }
|
||||
depository_eur_checking: { }
|
||||
depository_multi_currency: { }
|
||||
|
|
32
test/fixtures/account/expected_balances.csv
vendored
32
test/fixtures/account/expected_balances.csv
vendored
|
@ -1,32 +0,0 @@
|
|||
date_offset,collectable,checking,savings_with_valuation_overrides,credit_card,eur_checking_eur,eur_checking_usd,multi_currency
|
||||
-30,400,4000,21250,1040,11850,12947.31,10721.26
|
||||
-29,400,3985,21750,940,12050,13182.7,10921.26
|
||||
-28,400,3985,21750,940,12050,13194.75,10921.26
|
||||
-27,400,3985,21750,940,12050,13132.09,10921.26
|
||||
-26,400,3985,21750,940,12050,13083.89,10921.26
|
||||
-25,400,3985,21000,940,12050,13081.48,10921.26
|
||||
-24,400,3985,21000,940,12050,13062.2,10921.26
|
||||
-23,400,3985,21000,940,12050,13022.435,10921.26
|
||||
-22,400,5060,21000,940,12050,13060.995,10921.26
|
||||
-21,400,5060,21000,940,12050,13068.225,10921.26
|
||||
-20,400,5060,21000,940,12050,13079.07,10921.26
|
||||
-19,400,5060,21000,940,11950,12932.29,10813.04
|
||||
-18,400,5060,19000,940,11950,12934.68,10813.04
|
||||
-17,400,5060,19000,940,11950,12927.51,10813.04
|
||||
-16,400,5060,19000,940,11950,12916.755,10813.04
|
||||
-15,400,5040,19000,960,11950,12882.1,10813.04
|
||||
-14,400,5040,19000,960,11950,12879.71,10813.04
|
||||
-13,400,5040,19000,960,11950,12873.735,10813.04
|
||||
-12,700,5010,19500,990,11950,12821.155,10813.04
|
||||
-11,700,5010,19500,990,11950,12797.255,10813.04
|
||||
-10,700,5010,19500,990,11950,12873.735,10813.04
|
||||
-9,700,5010,19500,990,12000,12939.6,10863.04
|
||||
-8,700,5010,19500,990,12000,12933.6,10863.04
|
||||
-7,700,5010,19500,990,12000,12928.8,10863.04
|
||||
-6,700,5010,19500,990,12000,12906,10863.04
|
||||
-5,700,5000,19700,1000,12000,12891.6,10863.04
|
||||
-4,550,5000,19700,1000,12000,12945.6,10000
|
||||
-3,550,5000,20500,1000,12000,13046.4,10000
|
||||
-2,550,5000,20500,1000,12000,12982.8,10000
|
||||
-1,550,5000,20500,1000,12000,13014,10000
|
||||
0,550,5000,20500,1000,12000,13000.8,10000
|
|
1
test/fixtures/account/investments.yml
vendored
1
test/fixtures/account/investments.yml
vendored
|
@ -0,0 +1 @@
|
|||
investment_brokerage: { }
|
1
test/fixtures/account/loans.yml
vendored
1
test/fixtures/account/loans.yml
vendored
|
@ -0,0 +1 @@
|
|||
loan_mortgage: { }
|
5
test/fixtures/account/other_assets.yml
vendored
5
test/fixtures/account/other_assets.yml
vendored
|
@ -1,2 +1,3 @@
|
|||
one:
|
||||
id: "123e4567-e89b-12d3-a456-426614174002"
|
||||
other_asset_collectable: { }
|
||||
|
||||
|
||||
|
|
1
test/fixtures/account/other_liabilities.yml
vendored
1
test/fixtures/account/other_liabilities.yml
vendored
|
@ -0,0 +1 @@
|
|||
other_asset_iou: { }
|
1
test/fixtures/account/properties.yml
vendored
1
test/fixtures/account/properties.yml
vendored
|
@ -0,0 +1 @@
|
|||
property_house: { }
|
1
test/fixtures/account/vehicles.yml
vendored
1
test/fixtures/account/vehicles.yml
vendored
|
@ -0,0 +1 @@
|
|||
vehicle_honda_accord: { }
|
Loading…
Add table
Add a link
Reference in a new issue