2012-11-10 16:44:05 +01:00
|
|
|
class Finance::BaseController < ApplicationController
|
2019-10-28 21:11:35 +01:00
|
|
|
before_action :authenticate_finance
|
2012-11-10 16:44:05 +01:00
|
|
|
|
|
|
|
def index
|
2019-11-01 14:07:23 +01:00
|
|
|
@financial_transactions = FinancialTransaction.with_ordergroup.includes(:ordergroup).order(created_on: :desc).limit(8)
|
2019-11-19 16:50:02 +01:00
|
|
|
@orders = Order.finished_not_closed.includes(:supplier).limit(8)
|
|
|
|
@unpaid_invoices = Invoice.unpaid.includes(:supplier).limit(8)
|
2012-11-10 16:44:05 +01:00
|
|
|
|
|
|
|
render template: 'finance/index'
|
|
|
|
end
|
2017-10-02 16:05:18 +02:00
|
|
|
end
|