mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Added comma support #2785
This commit is contained in:
parent
f5311301c9
commit
e9cf3d2fbe
15 changed files with 80 additions and 21 deletions
|
@ -7,6 +7,7 @@ class Admin::BankTransactionsController < AdminController
|
|||
end
|
||||
|
||||
def create
|
||||
comma_support_for(:bank_transaction, :sum)
|
||||
@bank_transaction = BankTransaction.new(
|
||||
bank_transaction_params.merge(bank_statement_id: params[:bank_statement_id])
|
||||
)
|
||||
|
@ -21,6 +22,7 @@ class Admin::BankTransactionsController < AdminController
|
|||
end
|
||||
|
||||
def update
|
||||
comma_support_for(:bank_transaction, :sum)
|
||||
if @bank_transaction.update(bank_transaction_params)
|
||||
flash[:notice] = I18n.t('record_updated')
|
||||
redirect_to [:admin, @bank_transaction]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue