1
0
Fork 0
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:
Zach Gollwitzer 2024-06-19 06:52:08 -04:00 committed by GitHub
parent b462bc8f8c
commit ca39b26070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 991 additions and 427 deletions

View file

@ -1,2 +1 @@
one:
id: "123e4567-e89b-12d3-a456-426614174003"
credit_one: { }

View file

@ -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: { }

View file

@ -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: { }

View file

@ -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 date_offset collectable checking savings_with_valuation_overrides credit_card eur_checking_eur eur_checking_usd multi_currency
2 -30 400 4000 21250 1040 11850 12947.31 10721.26
3 -29 400 3985 21750 940 12050 13182.7 10921.26
4 -28 400 3985 21750 940 12050 13194.75 10921.26
5 -27 400 3985 21750 940 12050 13132.09 10921.26
6 -26 400 3985 21750 940 12050 13083.89 10921.26
7 -25 400 3985 21000 940 12050 13081.48 10921.26
8 -24 400 3985 21000 940 12050 13062.2 10921.26
9 -23 400 3985 21000 940 12050 13022.435 10921.26
10 -22 400 5060 21000 940 12050 13060.995 10921.26
11 -21 400 5060 21000 940 12050 13068.225 10921.26
12 -20 400 5060 21000 940 12050 13079.07 10921.26
13 -19 400 5060 21000 940 11950 12932.29 10813.04
14 -18 400 5060 19000 940 11950 12934.68 10813.04
15 -17 400 5060 19000 940 11950 12927.51 10813.04
16 -16 400 5060 19000 940 11950 12916.755 10813.04
17 -15 400 5040 19000 960 11950 12882.1 10813.04
18 -14 400 5040 19000 960 11950 12879.71 10813.04
19 -13 400 5040 19000 960 11950 12873.735 10813.04
20 -12 700 5010 19500 990 11950 12821.155 10813.04
21 -11 700 5010 19500 990 11950 12797.255 10813.04
22 -10 700 5010 19500 990 11950 12873.735 10813.04
23 -9 700 5010 19500 990 12000 12939.6 10863.04
24 -8 700 5010 19500 990 12000 12933.6 10863.04
25 -7 700 5010 19500 990 12000 12928.8 10863.04
26 -6 700 5010 19500 990 12000 12906 10863.04
27 -5 700 5000 19700 1000 12000 12891.6 10863.04
28 -4 550 5000 19700 1000 12000 12945.6 10000
29 -3 550 5000 20500 1000 12000 13046.4 10000
30 -2 550 5000 20500 1000 12000 12982.8 10000
31 -1 550 5000 20500 1000 12000 13014 10000
32 0 550 5000 20500 1000 12000 13000.8 10000

View file

@ -0,0 +1 @@
investment_brokerage: { }

View file

@ -0,0 +1 @@
loan_mortgage: { }

View file

@ -1,2 +1,3 @@
one:
id: "123e4567-e89b-12d3-a456-426614174002"
other_asset_collectable: { }

View file

@ -0,0 +1 @@
other_asset_iou: { }

View file

@ -0,0 +1 @@
property_house: { }

View file

@ -0,0 +1 @@
vehicle_honda_accord: { }