Add the bill number to billed tasks in the time entry form (closes: #b1b255)

This commit is contained in:
Paul van Tilburg 2012-01-31 22:51:31 +01:00
parent ff503f89d5
commit bf1d0c633d
1 changed files with 4 additions and 1 deletions

View File

@ -1188,7 +1188,10 @@ module StopTime::Controllers
@input["start"] = @time_entry.start.to_formatted_s(:time_only)
@input["end"] = @time_entry.end.to_formatted_s(:time_only)
@customer_list = Customer.all.map { |c| [c.id, c.shortest_name] }
@task_list = Task.all.map { |t| [t.id, t.name] }
@task_list = Task.all(:order => "name, invoice_id ASC").map do |t|
name = t.billed? ? t.name + " (#{t.invoice.number})" : t.name
[t.id, name]
end
@target = [TimelineN, entry_id]
@button = "update"