From 30fd5ec599fead0eb0723a9694040ef8543a41cd Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 14 Jul 2013 14:37:40 +0200 Subject: [PATCH] Show a billed fixed-task under itself in the customer_form view As billed fixed-cost tasks cannot have an active task, the task itself still is the one that is billed. Show the task under itself to expose the fact that it is billed and in which invoice. --- stoptime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index c6619b2..0c34401 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -820,7 +820,7 @@ module StopTime::Controllers if cur_active_task.nil? # Apparently there is no active task anymore, probably # it was a fixed-cost task - @billed_tasks[task] = [] + @billed_tasks[task] = [task] else @billed_tasks[cur_active_task] << task end