Fix balancing with financial_transaction_types
This commit is contained in:
parent
954795138d
commit
66e9629858
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class Finance::BalancingController < Finance::BaseController
|
||||||
# Balances the Order, Update of the Ordergroup.account_balances
|
# Balances the Order, Update of the Ordergroup.account_balances
|
||||||
def close
|
def close
|
||||||
@order = Order.find(params[:id])
|
@order = Order.find(params[:id])
|
||||||
@type = FinancialTransactionType.find_by_id(params.permit(:type))
|
@type = FinancialTransactionType.find_by_id(params.permit(:type)[:type])
|
||||||
@order.close!(@current_user, @type)
|
@order.close!(@current_user, @type)
|
||||||
redirect_to finance_order_index_url, notice: t('finance.balancing.close.notice')
|
redirect_to finance_order_index_url, notice: t('finance.balancing.close.notice')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue