Commit Graph

29 Commits

Author SHA1 Message Date
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
04d0d8ad9e [#2279] Use the string versions of the booleans 2009-04-22 15:17:19 -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
c122a291c7 Use the other string for the label, it can be confused with the billing plugin. 2009-04-22 14:02:13 -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
92792f300b [#2279] Moved select_values_for_field to a helper. 2009-04-22 12:02:07 -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
Eric Davis
2294af13fd Make sure the spec user isn't allowed to access anything 2009-04-21 15:12:59 -07:00
Eric Davis
9226b91245 [#2281] Added a error message if the user has JavaScript offf. 2009-04-21 13:58:11 -07:00
Eric Davis
98976220ed [#2281] Only allow boolean and list custom fields. 2009-04-21 13:50:48 -07:00
Eric Davis
771afdcb8f [#2281] Handle submissions of invalid values. 2009-04-21 13:48:52 -07:00
Eric Davis
944cade841 [#2281] Hooked up the cascaded selects to the Billing Status select. 2009-04-21 13:44:31 -07:00
Eric Davis
bcba8262b3 [#3942] Added a controller to handle JavaScript requests for a CustomField options.
* Added OverheadTimeEntryActivityController which requires administrator access
* Added a partial which will render the HTML options for a select field
* Added some RSpec examples
2009-04-21 12:17:42 -07:00
Eric Davis
631a43392d Using RSpec 2009-04-21 11:34:53 -07:00
Eric Davis
899026d0d1 Added RSpec support 2009-04-21 11:22:28 -07:00
Eric Davis
83da03a9e0 [#2281] Created a rough settings form for mapping the billable custom value. 2009-04-21 09:28:51 -07:00
Eric Davis
246f5a4826 [#2281] Added plugin documentation. 2009-04-21 09:15:01 -07:00
Eric Davis
5be5fd93c4 [#2281] Initial commit 2009-04-21 09:01:13 -07:00