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
|
2017-10-02 16:05:18 +02:00
|
|
|
@financial_transactions = FinancialTransaction.includes(:ordergroup).order('created_on DESC').limit(8)
|
|
|
|
@orders = Order.finished_not_closed.includes(:supplier)
|
|
|
|
@unpaid_invoices = Invoice.unpaid.includes(:supplier)
|
2012-11-10 16:44:05 +01:00
|
|
|
|
|
|
|
render template: 'finance/index'
|
|
|
|
end
|
2017-10-02 16:05:18 +02:00
|
|
|
end
|