Class: Finance::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Finance::BaseController
- Defined in:
- app/controllers/finance/base_controller.rb
Direct Known Subclasses
BalancingController, BankAccountsController, FinancialLinksController, OrdergroupsController
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/finance/base_controller.rb', line 4 def index @financial_transactions = FinancialTransaction.with_ordergroup.includes(:ordergroup).order(created_on: :desc).limit(8) @orders = Order.finished_not_closed.includes(:supplier).limit(8) @unpaid_invoices = Invoice.unpaid.includes(:supplier).limit(8) render template: 'finance/index' end |