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.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