From f543ac554a60aa6b9c296b3bf10bec69dd274f8c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 8 Nov 2011 13:08:22 +0100 Subject: [PATCH] Moved the CustomersNInvoicesNew lower to fix routing order. --- stoptime.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 0ca2e62..c5e4ae8 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -400,18 +400,6 @@ module StopTime::Controllers end end - class CustomersNInvoicesNew - def get(customer_id) - @customer = Customer.find(customer_id) - @entries = @customer.time_entries.all(:order => "start ASC", - :conditions => ["invoice_id IS NULL"]) - @fixed_cost_tasks = @customer.tasks.all(:order => "updated_at ASC", - :conditions => ["fixed_cost IS NOT NULL AND billed = ?", 'f']) - p @entries, @fixed_cost_tasks - render :invoice_select_form - end - end - class CustomersNInvoicesX def get(customer_id, invoice_number) # FIXME: make this (much) nicer! @@ -452,6 +440,18 @@ module StopTime::Controllers end end + class CustomersNInvoicesNew + def get(customer_id) + @customer = Customer.find(customer_id) + @entries = @customer.time_entries.all(:order => "start ASC", + :conditions => ["invoice_id IS NULL"]) + @fixed_cost_tasks = @customer.tasks.all(:order => "updated_at ASC", + :conditions => ["fixed_cost IS NOT NULL AND billed = ?", 'f']) + p @entries, @fixed_cost_tasks + render :invoice_select_form + end + end + class Timereg def get @entries = TimeEntry.all(:order => "start DESC")