mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Recurring transactions (#271)
* Implement recurring transactions support * Amount fix * Hide section when any filter is applied * Add automatic identify feature Automatic identification runs after: - CSV Import completes (TransactionImport, TradeImport, AccountImport, MintImport) - Plaid sync completes - SimpleFIN sync completes - LunchFlow sync completes - Any new provider that we create. * Fix linter and tests * Fix address review * FIX proper text sizing * Fix further linter Use circular distance to handle month-boundary wrapping * normalize to a circular representation before computing the median * Better tests validation * Added some UI info Fix pattern identification, last recurrent transaction needs to happened within the last 45 days. * Fix styling * Revert text subdued look * Match structure of the other sections * Styling * Restore positive amounts styling * Shorten label for UI styling --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
21
test/fixtures/recurring_transactions.yml
vendored
Normal file
21
test/fixtures/recurring_transactions.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
netflix_subscription:
|
||||
family: dylan_family
|
||||
merchant: netflix
|
||||
amount: 15.99
|
||||
currency: USD
|
||||
expected_day_of_month: 5
|
||||
last_occurrence_date: <%= 1.month.ago.to_date %>
|
||||
next_expected_date: <%= 5.days.from_now.to_date %>
|
||||
status: active
|
||||
occurrence_count: 3
|
||||
|
||||
inactive_subscription:
|
||||
family: dylan_family
|
||||
merchant: amazon
|
||||
amount: 9.99
|
||||
currency: USD
|
||||
expected_day_of_month: 15
|
||||
last_occurrence_date: <%= 3.months.ago.to_date %>
|
||||
next_expected_date: <%= 2.months.ago.to_date %>
|
||||
status: inactive
|
||||
occurrence_count: 2
|
||||
Reference in New Issue
Block a user