mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-28 09:39:39 +02:00
Allow offline trade tickers (#1925)
This commit is contained in:
parent
882857fcf0
commit
9138bd2b76
4 changed files with 21 additions and 6 deletions
|
@ -10,7 +10,7 @@ class Account::TradesController < ApplicationController
|
|||
|
||||
def create_entry_params
|
||||
params.require(:account_entry).permit(
|
||||
:account_id, :date, :amount, :currency, :qty, :price, :ticker, :type, :transfer_account_id
|
||||
:account_id, :date, :amount, :currency, :qty, :price, :ticker, :manual_ticker, :type, :transfer_account_id
|
||||
).tap do |params|
|
||||
account_id = params.delete(:account_id)
|
||||
params[:account] = Current.family.accounts.find(account_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue