Removed finance-controller for more clarity.

This commit is contained in:
Benjamin Meichsner 2009-01-19 16:40:06 +01:00
parent ff6b460cfc
commit 2630ca2b14
10 changed files with 10 additions and 21 deletions

View file

@ -2,6 +2,12 @@ class Finance::BalancingController < ApplicationController
before_filter :authenticate_finance
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
end
def list
@orders = Order.finished.paginate :page => params[:page], :per_page => 10, :order => 'ends DESC'
end