38 Commits
Author SHA1 Message Date
Adam Soltys 6a9ead4ad0 Set issues' deliverable_id to NULL if their deliverable is deleted 2009-08-31 15:17:43 -07:00
Eric Davis 3720c486b4 Added a Deliverable#to_s so the Deliverable subject can be printed. 2009-02-18 14:44:06 -08:00
Eric Davis 049885c170 Refactored the class and added more tests on calculations. #1924 2009-01-21 16:20:18 -08:00
Eric Davis aed49c68da Make things simple and they are easier to understand. #1924 2009-01-21 15:29:00 -08:00
Eric Davis 52e80b4f56 Wrapped Deliverable.budget getter so it will return 0 if the budget is nil. #1708 2008-10-15 09:43:22 -07:00
Eric Davis 8037833f13 Deliverable.spent_by_members will now sum the amount of money spent. #1447 2008-07-16 09:13:17 -07:00
Eric Davis 495c5f6ac8 Added some better details on the deliverables based on if they are hourly or fixed. #1439 2008-07-10 17:54:50 -07:00
Eric Davis 1b8d4c6d52 Moved methods from HourlyDeliverable to Deliverable. #1439 2008-07-10 17:44:29 -07:00
Eric Davis 6c638ffb83 Refactored Deliverable.progress so it doesn't depend on the custom issue status
for done ratio patch.  The plugin will test for the presence of the setting and
if it's true in order to control the logic.

  #1390
2008-06-30 15:57:42 -07:00
Eric Davis b776098c7d Changed profit to take into account the overhead along with the total labor cost
when profit is a %

* Fixed Models
* Fixed JS Calculator
* Cleaned up specs to access attributes directly

  #1349
2008-06-19 15:29:02 -07:00
Eric Davis 63ba3fafc7 Progress and Score should be 0 by default. #1305 2008-06-12 16:31:15 -07:00
Eric Davis 8150cfcabc Added rdoc comments 2008-06-11 09:19:51 -07:00
Eric Davis 211fc5879d Added MemberSpent class to help create the fields for getting the amounts per member. #1190 2008-06-09 16:32:26 -07:00
Eric Davis b571a1f338 Added count of the issues based on tracker. #1190 2008-06-09 15:46:45 -07:00
Eric Davis 6c6f756de8 Added labor_budget virtual field and made that the Budget column. #1190 2008-06-09 15:31:57 -07:00
Eric Davis ba8a3400ec Added ability to change a deliverables type 2008-06-04 16:50:19 -07:00
Eric Davis 85affdb59b Fixing TODOS. 2008-06-04 16:04:32 -07:00
Eric Davis 490bf73efe Calc cleanup 2008-06-03 17:19:30 -07:00
Eric Davis e1cea90cd0 Added bulk issue assignment by version. #1157 2008-06-03 15:17:11 -07:00
Eric Davis cfa4a372db Added delete link. #1190 2008-05-28 17:05:58 -07:00
Eric Davis eba994a686 Building up the JavaScript details. #1190 2008-05-28 16:14:55 -07:00
Eric Davis 65da8e7594 Completed deliverable.spent calculation. #1136 2008-05-28 12:55:02 -07:00
Eric Davis 9df51da8f8 Fixing nil values 2008-05-28 12:23:13 -07:00
Eric Davis f20b614f84 Removed TODO flag 2008-05-23 16:39:42 -07:00
Eric Davis 1637e5cdd1 Implemented more of the Deliverable calculations
* Added deliverable.score
* Added fixed_deliverable.score as 0
* Added deliverable.budget_ratio

  #1136
2008-05-23 16:38:27 -07:00
Eric Davis 9e743932d1 Updated deliverable.progress to return 100 if it has no issues. #1136 2008-05-23 16:18:40 -07:00
Eric Davis 7e9e2759b8 Updated Deliverable.progress
* Make it return 100 if there are no issues
* Get rid of sum in favor of manually adding values
* Expand the progress bar to 100%

  #1136
2008-05-23 16:16:42 -07:00
Eric Davis c88de6ce4e Implemented the Deliverable.progress calculations. #1136 2008-05-23 15:59:41 -07:00
Eric Davis 697b966dd7 Added issues relationship to deliverables. #1135 2008-05-21 10:22:13 -07:00
Eric Davis a9c8897ed4 Added percent fields and changed the setters on Deliverables to save the values. #1135 2008-05-21 10:17:26 -07:00
Eric Davis bdec36e7ea Added toggle for the fixed cost, #1135 2008-05-21 09:26:22 -07:00
Eric Davis bd5bb6d1c5 Added validation on subject. Fixed failed save. #1135 2008-05-20 23:34:36 -07:00
Eric Davis e2df0f8925 Hooking up budget elements on the form. #1135 2008-05-20 21:30:39 -07:00
Eric Davis b2ecaca21e Made the new deliverable form to submit via Ajax
* Added DeliverablesController#create
* Refactored each deliverable row to a partial
* Added RJS to update the page after a submission

  #1135
2008-05-20 20:58:35 -07:00
Eric Davis ca96475b52 Added the start of the deliverable form. #1135 2008-05-20 20:18:31 -07:00
Eric Davis f99883c1bd Basic deliverable table implemented. #1135 2008-05-20 19:48:15 -07:00
Eric Davis 439a649b40 Associating a deliverable with a project. #1135 2008-05-20 16:09:09 -07:00
Eric Davis 00f8b19acf Created Deliverable model and tables. #1135 2008-05-20 16:01:43 -07:00