Class: Finance::BaseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/finance/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


4
5
6
7
8
9
10
# File 'app/controllers/finance/base_controller.rb', line 4

def index
  @financial_transactions = FinancialTransaction.includes(:ordergroup).order('created_on DESC').limit(8)
  @orders = Order.finished_not_closed.includes(:supplier)
  @unpaid_invoices = Invoice.unpaid.includes(:supplier)

  render template: 'finance/index'
end