2017-06-28 12:56:56 +02:00
|
|
|
class Admin::FinancesController < Admin::BaseController
|
|
|
|
inherit_resources
|
|
|
|
|
|
|
|
def index
|
2018-09-14 19:33:27 +02:00
|
|
|
@bank_accounts = BankAccount.order('name')
|
2021-03-05 12:44:53 +01:00
|
|
|
@bank_gateways = BankGateway.order('name')
|
2019-10-30 11:53:44 +01:00
|
|
|
@financial_transaction_classes = FinancialTransactionClass.includes(:financial_transaction_types).order('name ASC')
|
2017-06-28 12:56:56 +02:00
|
|
|
end
|
|
|
|
|
2018-09-14 19:33:27 +02:00
|
|
|
def update_bank_accounts
|
|
|
|
@bank_accounts = BankAccount.order('name')
|
|
|
|
render :layout => false
|
|
|
|
end
|
|
|
|
|
2021-03-05 12:44:53 +01:00
|
|
|
def update_bank_gateways
|
|
|
|
@bank_gateways = BankGateway.order('name')
|
|
|
|
render :layout => false
|
|
|
|
end
|
|
|
|
|
2017-06-28 12:56:56 +02:00
|
|
|
def update_transaction_types
|
2019-10-30 11:53:44 +01:00
|
|
|
@financial_transaction_classes = FinancialTransactionClass.includes(:financial_transaction_types).order('name ASC')
|
2017-06-28 12:56:56 +02:00
|
|
|
render :layout => false
|
|
|
|
end
|
|
|
|
end
|