foodsoft/app/controllers/admin/finances_controller.rb

25 lines
717 B
Ruby
Raw Normal View History

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')
@financial_transaction_classes = FinancialTransactionClass.includes(:financial_transaction_types).order('name ASC')
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
def update_transaction_types
@financial_transaction_classes = FinancialTransactionClass.includes(:financial_transaction_types).order('name ASC')
render :layout => false
end
end