Commit Graph
28 Commits
Author SHA1 Message Date
Eric Davis 2e090df4e3 [#4420] Allow an optional date param. Used by redmine_contracts. 2010-09-09 13:50:08 -07:00
Eric Davis edb58be9a2 Fix the Dispatcher pattern. 2010-07-07 12:42:21 -07:00
Eric Davis 44ef5cdb0b [#3306] Added the Billable column to the Timesheet plugin's CSV export. 2009-11-19 11:45:40 -08:00
Eric Davis 5afafaa187 [#2863] Override the deliverable rows from the budget plugin to show
labor budget spent.

* Added FixedDeliverable#labor_budget_spent
* Added HourlyDeliverable#labor_budget_spent
* Added an _deliverable_summary_row.html.erb with the new method
2009-08-07 13:27:23 -07:00
Eric Davis a61b41a22b [#2275] Don't need to check for the budget module for this. 2009-08-05 16:00:17 -07:00
Eric Davis d3f6ca5433 [#2271] Refactored the inline HTML generation to a helper and render call. 2009-08-05 15:49:05 -07:00
Eric Davis b6e7111996 [#2271] Show overhead time on the issue details page. 2009-08-05 15:42:08 -07:00
Eric Davis 5d5a8eb82c [#2271] Added the Billable time to the issue details page. 2009-08-05 15:38:20 -07:00
Eric Davis cd826e7cd6 [#2847] Added Deliverable#overhead_spent to calculate the overhead cost so far. 2009-08-05 14:55:32 -07:00
Eric Davis 79847e36c0 [#2847] Fixed a broken test 2009-08-05 14:41:23 -07:00
Eric Davis 81ed5a2385 [#2847] Implemented and tested the hooks need to display overhead_spent. 2009-08-05 14:29:29 -07:00
Eric Davis 47869780a6 [#2847] Created a very basic set of hooks for the Deliverables table in the Budget plugin. 2009-08-05 13:45:36 -07:00
Eric Davis ea1c466134 [#2844] Added an API to get the total number of billable and overhead hours.
* Added Issue#billable_time_spent
* Added Issue#overhead_time_spent
* Added specs
2009-08-04 15:37:39 -07:00
Eric Davis 9a8c9371f6 [#2279] Threw away previous work getting the custom data values for Billable.
They should be only Billable and Overhead.

* Hard coded the options for the Billable select instead of dynamically
  pull the values from the Custom Field
* Removed TimeEntryActivity#find_with_billable_values in favor of two new
  methods to return a TimeEntryActivity if it is billable or overhead.
  `find_billable_activities` and `find_overhead_activities`
* Reworked the TimesheetController hook to use the new methods for finding the
  TimeEntryActivities
* Updated RSpec examples
2009-04-22 16:02:34 -07:00
Eric Davis 16d793bea6 [#2279] Hooked up the Billable filter to adjust the Timesheet's Activities.
* Hooked into the TimesheetController to modify the Timesheet activities
* Added TimeEntryActivity#find_with_billable_values to find all the TimeEntryActivities
  which have the value in the billable custom field.
2009-04-22 15:10:29 -07:00
Eric Davis f15dafc4fe [#2279] Select the Billable values based on the submitted form. 2009-04-22 14:00:15 -07:00
Eric Davis 9ee8c41d7b [#2279] Populated the Timesheet filter with the values from the Billable field
using the OverheadHelper.
2009-04-22 12:02:30 -07:00
Eric Davis cb8d2bc6df [#2279] Added TimeEntryActivity#billable_custom_field to lookup and return
the configured CustomField for the Billing Status.
2009-04-22 11:53:50 -07:00
Eric Davis 467c1259d8 [#2279] Added an empty select field for the statuses. 2009-04-22 11:42:06 -07:00
Eric Davis b4fbbde01a [#2279] Added the Billing Status label and fixed the specs to work with a
render_to_string.
2009-04-22 11:41:28 -07:00
Eric Davis ebd06b893b [#2280] Added documentation. 2009-04-22 10:30:58 -07:00
Eric Davis 85af15b7c3 [#2280] Center the billable column 2009-04-22 10:21:42 -07:00
Eric Davis c62722041d [#2280] Added a td for the group by issue format. 2009-04-22 10:17:07 -07:00
Eric Davis 27ab69002c [#2280] Added a Billable cell with the green checkbox depending on if a
Time Entry is billable or not.
2009-04-22 10:13:22 -07:00
Eric Davis 7e67416b5b [#2280] Added a Billable header to the Timesheet plugin's report tables. 2009-04-22 09:32:11 -07:00
Eric Davis adf17f8ed7 [#2281] Added a TimeEntry#billable? method which is delegated to
TimeEntryActivity#billable?
2009-04-21 17:06:28 -07:00
Eric Davis ea38554820 [#2281] Refactored the implementation of billable?. 2009-04-21 17:00:22 -07:00
Eric Davis efb58740a3 [#2281] Added TimeEntryActivity#billable? query method which will lookup
the settings and the current custom values of the TimeEntryActivity.
2009-04-21 16:51:20 -07:00