From 0abad6532865be01e3f5173fb284402290ac29d4 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 2 Jan 2012 14:04:43 +0100 Subject: [PATCH] Show the list of contained time entries for tasks with an hourly rate --- stoptime.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stoptime.rb b/stoptime.rb index 0e00552..641e035 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1636,6 +1636,14 @@ module StopTime::Views td.right { "€ %.2f" % line[2] } end subtotal += line[2] + task.time_entries.each do |entry| + tr do + td.indent { "• " + entry.comment } + td.right { "%.2fh" % entry.hours_total } + td.right { "–" } + td.right { "–" } + end + end unless task.fixed_cost? end if @company.vatno.blank? vat = 0