mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Fix duplicate category creation on import (#791)
* Repro * Fix * Update signage
This commit is contained in:
parent
77f166a5f8
commit
41c991384a
4 changed files with 24 additions and 12 deletions
16
test/fixtures/imports.yml
vendored
16
test/fixtures/imports.yml
vendored
|
@ -6,12 +6,16 @@ loaded_import:
|
|||
account: checking
|
||||
raw_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food,20
|
||||
2024-01-02,Amazon stuff,Shopping,200
|
||||
2024-01-01,Starbucks drink,Food & Drink,-8.55
|
||||
2024-01-01,Etsy,Shopping,-80.98
|
||||
2024-01-02,Amazon stuff,Shopping,-200
|
||||
2024-01-03,Paycheck,Income,1000
|
||||
normalized_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food,20
|
||||
2024-01-02,Amazon stuff,Shopping,200
|
||||
2024-01-01,Starbucks drink,Food & Drink,-8.55
|
||||
2024-01-01,Etsy,Shopping,-80.98
|
||||
2024-01-02,Amazon stuff,Shopping,-200
|
||||
2024-01-03,Paycheck,Income,1000
|
||||
created_at: <%= 2.days.ago %>
|
||||
|
||||
completed_import:
|
||||
|
@ -23,10 +27,10 @@ completed_import:
|
|||
amount: amount
|
||||
raw_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food,20
|
||||
2024-01-01,Starbucks drink,Food & Drink,-20
|
||||
normalized_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food,20
|
||||
2024-01-01,Starbucks drink,Food & Drink,-20
|
||||
created_at: <%= 2.days.ago %>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue