51 Commits

Author SHA1 Message Date
Eric Davis
f42b419bf3 [#6898] Replace SortHelper patch with a plain helper 2012-05-15 09:09:43 -07:00
Eric Davis
4c3e6b6b6d [#5734] Fix the cost caching case where Time Entry attributes changed
A cost value wasn't getting recaclulated by TimeEntry#cost when the
attributes were changing. It only was recalculated when .cost changed.
2011-04-06 09:27:20 -07:00
Eric Davis
4e705fd1eb [#4604] Simplify the cost caching system 2010-10-13 16:54:48 -07:00
Eric Davis
073dfe1177 [#4604] Add an admin panel for the rate caches 2010-10-13 11:32:32 -07:00
Eric Davis
fb3b0a41ae [#4604] Add a method and rake task to clear and update all TimeEntry cost caches 2010-10-06 17:35:28 -07:00
Eric Davis
33cf4d5c5c [#4604] Add test for Rate#update_all_time_entries_with_missing_cost 2010-10-06 17:18:58 -07:00
Eric Davis
41b1a3cd54 [#4604] Move method to model 2010-10-06 17:10:37 -07:00
Eric Davis
43a8fe27dc [#4604] Add a simple rake task to update missing cost caches 2010-10-06 15:48:55 -07:00
Eric Davis
f7b03b825f [#4604] Clear and recalculate the #cost on Rate#save 2010-10-06 13:05:57 -07:00
Eric Davis
d656121b20 [#4604] Clear and recalculate the TimeEntry#cost on save 2010-10-06 12:41:56 -07:00
Eric Davis
dbfc6c5335 [#4604] Add basic caching for TimeEntry#cost 2010-10-06 12:12:45 -07:00
Eric Davis
cec35ad3af [#3827] Don't hardcode the core tabs with alias_method_chain. 2010-07-27 06:15:14 -07:00
Eric Davis
3ccb88e31a [#3832] Remove unneeded extend in the UsersHelperPatch. 2010-07-27 06:03:52 -07:00
Eric Davis
e541270461 [#4289] Ported the billing plugin's timesheet hooks. 2010-07-23 10:16:41 -07:00
Eric Davis
7192adb231 [#4289] Added empty hooks needed for the Timesheet. 2010-07-23 09:35:44 -07:00
Eric Davis
8058e938ae Fixed loading in the dispatcher. 2010-03-17 14:53:49 -07:00
Eric Davis
7f7b400f15 [#3180 #3266] Compatibility fix for the Groups feature. 2009-11-02 18:30:17 -08:00
Eric Davis
5f277b9656 Merge commit 'origin/master' 2009-08-01 11:11:28 -07:00
Eric Davis
724dd470ba Removed the Redmine core template and Redmine core hooks instead. 2009-08-01 11:05:55 -07:00
Eric Davis
43c20ae820 [#2558] Fixed a SystemStackError caused by alias_method_chain 2009-08-01 11:04:39 -07:00
Eric Davis
c0006e1040 [#2558] Check that @memberships is set before using it. 2009-08-01 10:04:20 -07:00
Eric Davis
391f136710 [#2560] Fixed the Project select field so the current project is selected correctly. 2009-05-26 10:45:12 -07:00
Eric Davis
452edfeeaa Refactored core Redmine patches so the plugin can be run in development. 2009-04-21 21:44:58 -07:00
Eric Davis
df0ecda7ff Added some compatibility wrappers for the stable 0.8.x version of Redmine. 2009-04-21 21:35:13 -07:00
Eric Davis
1e10952506 [#2397] Fixed sorting. Was an API change in the Redmine core. 2009-04-21 21:11:38 -07:00
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