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:
parent
e06f0c76f9
commit
730e58d763
11 changed files with 164 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue