foodsoft/app/controllers/finance_controller.rb

10 lines
353 B
Ruby
Raw Normal View History

2009-01-06 11:49:19 +01:00
class FinanceController < ApplicationController
before_filter :authenticate_finance
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')
@unpaid_invoices = Invoice.unpaid
2009-01-06 11:49:19 +01:00
end
end