mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 13:04:18 +00:00
feat: Move upcoming recurring transactions in a dedicated tab (#771)
* feat: Move upcoming transactions in a dedicated tab * Adjust formatting * feat: adjust visibility on mobile * feat: change translation label * feat: show only upcoming transactions expected in the next 10 days * feat: show upcoming transactions tab only when option enabled * feat: render empty partial when there are no recurring transactions * feat: align icon sizing and spacing between transactions and upcoming sections * feat: add missing localitazion labels * fix: move filter on upcoming transactions in controller * fix: add missing localitazion labels
This commit is contained in:
@@ -24,11 +24,11 @@ class TransactionsController < ApplicationController
|
||||
|
||||
@pagy, @transactions = pagy(base_scope, limit: safe_per_page)
|
||||
|
||||
# Load projected recurring transactions for next month
|
||||
# Load projected recurring transactions for next 10 days
|
||||
@projected_recurring = Current.family.recurring_transactions
|
||||
.active
|
||||
.where("next_expected_date <= ? AND next_expected_date >= ?",
|
||||
1.month.from_now.to_date,
|
||||
10.days.from_now.to_date,
|
||||
Date.current)
|
||||
.includes(:merchant)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user