Commit Graph
7 Commits
Author SHA1 Message Date
Eric Davis edb58be9a2 Fix the Dispatcher pattern. 2010-07-07 12:42:21 -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 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 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 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