Commit Graph
26 Commits
Author SHA1 Message Date
Eric Davis b521b487ad Rates are now copied during Project#copy. 2009-02-25 10:53:18 -08:00
Eric Davis dfc175bf5a Non closed form tag caused the Add Member form to error. #2070 2009-01-27 20:10:31 -08:00
Eric Davis 7c92da0720 Removed edit_rate permission, only Administrators can edti rates. #2031 2009-01-26 15:04:33 -08:00
Eric Davis b8a2d0cee7 Wrapped edit form and link in a check for edit_rate permissions. #2031 2009-01-26 14:44:04 -08:00
Eric Davis ba0ee9b6f8 Added permissions to view a rate. #2031 2009-01-26 14:40:03 -08:00
Eric Davis 0499ea9b46 Round values when comparing to prevent false positives. #1924 2009-01-26 12:21:03 -08:00
Eric Davis d6c8b542f2 Bit of documentation. #1922 2009-01-23 15:39:46 -08:00
Eric Davis 62a95e03e9 Added wrapper tasks to run both the budget and biling tests. #1922 2009-01-23 15:35:02 -08:00
Eric Davis 04411abe68 Added a conversation test for the Billing plugin. #1922 2009-01-23 15:34:33 -08:00
Eric Davis f3e682943f Better names for tasks 2009-01-23 14:36:03 -08:00
Eric Davis 0eb53f9cbd Added version requirements, they were actually required. #1924 2009-01-23 14:24:45 -08:00
Eric Davis 677216b8e5 Moved code into a class. #1924 2009-01-23 14:19:24 -08:00
Eric Davis 2ce6a32f39 Not needed, rake will yell about that. #1924 2009-01-23 14:12:14 -08:00
Eric Davis b550f96400 Don't need to worry about version numbers. #1924 2009-01-23 14:09:59 -08:00
Eric Davis 8ea912be4b First run at a data checking task for the Budget plugin. #1924 2009-01-23 14:09:21 -08:00
Eric Davis 6aa00eeeb9 Added a helper method to TimeEntry that will encapsulate the rate API for a TimeEntry.
* TimeEntry#cost will return the amount the TimeEntry costs based on:
** logged hours times the assigned rate amount
** logged hours times the effective project rate for the user
** logged hours times the effective default rate for the user
** 0 if the user has no rates at all

  #1924
2009-01-21 15:11:35 -08:00
Eric Davis 2d3fbf02b0 Added TODO 2009-01-21 13:34:45 -08:00
Eric Davis b6bffb2c05 Added the rest of the form for setting a rate on a project. #1923 2009-01-21 12:35:55 -08:00
Eric Davis aab2d83d48 Update the value for the emapy project so it will set the default rate. #1923 2009-01-21 12:35:33 -08:00
Eric Davis dc6acf5031 Changed the create.rjs so it will replace the td on the admin and project panel.
* td's are now id'ed like rate_project_user

  #1923
2009-01-21 12:20:17 -08:00
Eric Davis 05501f3eb6 Ported the basics for the Rate form from the Budget plugin. #1923 2009-01-21 12:15:44 -08:00
Eric Davis 256627d2a3 Ported the table header from the Budget plugin hook. #1923 2009-01-21 11:23:15 -08:00
Eric Davis f870a6019e Hacked some column sorting onto RatesController
* Added SortHelper to RatesController
* Init and updating the sorting (pre 0.8 sort_update)
* RatesController#index will only render the layout on non-xhr requests
* Changed Rate.history_for_user to take an order clause
* Added rate_sort_header_tag and rate_sort_link to the SortHelper in order
  to get the correct parameters for sorting Rates
* Added rate_sort_header_tags to the Rate lists

  #1915
2009-01-19 14:43:54 -08:00
Eric Davis 7d32fc7088 Added a new helper to UsersHelper.
* project_options_for_select doesn't allow setting the selected project
  so it is replaced with project_options_for_select_with_selected in the views

  #1914
2009-01-19 11:47:02 -08:00
Eric Davis 931ecae4d1 Renamed the Rates tab to Rate History to match the comp. #1915 2009-01-16 15:17:34 -08:00
Eric Davis e1278bcb69 Patched UsersHelper#user_settings_tabs to add a new Rates tab
* Wrapped UsersHelper#user_settings_tabs with an alias_method_chain
* Added the new Rate element to the return of user_settings_tabs
* Added RSpecs to confirm the change works without breaking
* Added a partial view for users/rates which will be used by Redmine
  when it renders the user edit panel

  #1913
2009-01-16 14:42:33 -08:00