diff --git a/stoptime.rb b/stoptime.rb index d44edb7..9e85636 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1520,6 +1520,7 @@ module StopTime::Controllers .where("stoptime_tasks.invoice_id" => nil)\ .order("start DESC") end + @time_entries = @time_entries.where.not(task_id: nil) @time_entries.each do |te| @input["bill_#{te.id}"] = true if te.bill? end