1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Finish remaining transaction filters (#1189)

* Add type filters to transaction search

* Add amount filter
This commit is contained in:
Zach Gollwitzer 2024-09-17 10:38:02 -04:00 committed by GitHub
parent e06f0c76f9
commit 730e58d763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 164 additions and 30 deletions

View file

@ -67,9 +67,6 @@ class TransactionsController < ApplicationController
redirect_back_or_to transactions_url, notice: t(".success")
end
def rules
end
private
def amount
@ -93,7 +90,8 @@ class TransactionsController < ApplicationController
end
def search_params
params.fetch(:q, {}).permit(:start_date, :end_date, :search, accounts: [], account_ids: [], categories: [], merchants: [])
params.fetch(:q, {})
.permit(:start_date, :end_date, :search, :amount, :amount_operator, accounts: [], account_ids: [], categories: [], merchants: [], types: [])
end
def transaction_entry_params