2009-01-06 11:49:19 +01:00
|
|
|
class FinanceController < ApplicationController
|
|
|
|
before_filter :authenticate_finance
|
2009-01-10 22:22:16 +01:00
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
def index
|
|
|
|
@financial_transactions = FinancialTransaction.find(:all, :order => "created_on DESC", :limit => 8)
|
|
|
|
@orders = Order.find(:all, :conditions => 'finished = 1 AND booked = 0', :order => 'ends DESC')
|
2009-01-10 19:36:58 +01:00
|
|
|
@unpaid_invoices = Invoice.unpaid
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|