Eric Davis
aa9649fde3
[ #4225 ] Add the Deliverable as a criteria in the Time Entries Report.
2010-07-01 13:34:24 -07:00
Eric Davis
e25f841fe2
[ #4225 ] Generated a hook for the timelog available criterias.
2010-07-01 13:13:08 -07:00
Eric Davis
a53ceb2804
[ #3294 ] Expand the new form if the project doesn't have any deliverables yet.
2009-11-11 13:16:00 -08:00
Eric Davis
d552aa7f6f
[ #3294 ] Allow the query string to control if the new deliverable form is visible.
2009-11-11 13:11:21 -08:00
Eric Davis
ad67e1634f
Found some more calculation methods that were not tested. #1924
2009-01-21 16:27:39 -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
42325fadf4
Added tests for Budget#amount_missing_on_deliverables. #1924
2009-01-21 16:06:03 -08:00
Eric Davis
559b52112d
Added tests to check Budget#amount_missing_on_issues. #1924
2009-01-21 15:52:56 -08:00
Eric Davis
11b8a0a462
Added a test to cover Budget#labor_budget_left. #1924
2009-01-21 15:47:31 -08:00
Eric Davis
1706412bb8
Added test to get full coverage on HourlyDeliverable. #1924
2009-01-21 15:45:38 -08:00
Eric Davis
eeec71f857
Added test to get full coverage on FixedDeliverable. #1924
2009-01-21 15:44:12 -08:00
Eric Davis
3d8c1ecc5c
Removed all the duplicate methods that were getting the rate for each TimeEntry
...
and replaced them with a simple collector that uses the new TimeEntry#cost
method (that wraps the Rate API).
#1924
2009-01-21 15:20:21 -08:00
Eric Davis
045f50e0dd
Fixed format of the date request to Rate.amount_for. #1924
2009-01-21 14:34:19 -08:00
Eric Davis
4f18c28bba
Ported FixedDeliverable.spent to use Rate. #1924
2009-01-21 14:31:06 -08:00
Eric Davis
50a466d7af
Ported HourlyDeliverable.spent to use Rate. #1924
2009-01-21 14:27:12 -08:00
Eric Davis
01d8159e0e
Require all plugin code so rcov works and reports on everything
2008-11-30 01:59:20 -08:00
Eric Davis
6f42cda5ca
Allow the loading of a external Redmine environment
...
* If the REDMINE_ROOT environment variable is set, it will be used to load
the Rails environment. This will allow the plugin to be tested outside of
a Redmine's vendor/plugins directory
2008-11-30 01:12:12 -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
2dd140efa5
Wrapped Budget.budget, .labor_budget, and .spent with checks for nil values in the deliverables.
...
#1444
2008-07-16 09:03:07 -07:00
Eric Davis
7dd531d0ee
Added the cost of logged time to Fixed Deliverables's spent method. #1439
2008-07-10 17:43:22 -07:00
Eric Davis
c90e7337f5
FixedDeliverable.spent will now return the fixed cost. #1439
2008-07-10 17:36:14 -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
430f3de418
Fixed broken spec due to floats
2008-06-30 15:41:53 -07:00
Eric Davis
a5d88b67a8
HourlyDeliverable profit was being counted twice because HourlyDeliverable.profit would return the actual profit or the profit percent already. #1389
2008-06-30 15:32:00 -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
23c6ee6e92
Renamed Deliverable.due_date to due so it doesn't conflict with issue.due_date
2008-06-03 17:36:57 -07:00
Eric Davis
490bf73efe
Calc cleanup
2008-06-03 17:19:30 -07:00
Eric Davis
322013f4a0
Added Budget.profit. #1137
2008-06-03 14:41:04 -07:00
Eric Davis
e96bdccb42
Cleanup of values when a project is empty. #1137
2008-05-28 13:13:08 -07:00
Eric Davis
c433de9ec7
Added some defaults when there are no deliverables.
2008-05-28 13:03:42 -07:00
Eric Davis
990a10a4e8
Completed budget.spent calculation. #1137
2008-05-28 13:01:10 -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
1eb49e3c87
Fixed API usage, projects are not releated to Deliverables. #1137
2008-05-23 18:17:05 -07:00
Eric Davis
50f0d02391
Implemented Budget.overruns. #1137
2008-05-23 17:46:52 -07:00
Eric Davis
6056069858
Implemented a lot more Budget calculations by building on the basics. #1137
2008-05-23 17:41:19 -07:00
Eric Davis
332925b31a
Implemented Budget.final_due_date. #1137
2008-05-23 17:22:13 -07:00
Eric Davis
8c02ee4ade
Implementing Budget class along with it's helper methods. #1137
2008-05-23 17:14:53 -07:00
Eric Davis
5093377a5b
Base Budget class, #1137
2008-05-23 16:48:03 -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
bd5bb6d1c5
Added validation on subject. Fixed failed save. #1135
2008-05-20 23:34:36 -07:00
Eric Davis
f99883c1bd
Basic deliverable table implemented. #1135
2008-05-20 19:48:15 -07:00
Eric Davis
5919d7b177
Building specs for the controller. #1135
2008-05-20 16:39:24 -07:00
Eric Davis
15cc2c992d
Adding basic Deliverable controller and index page. #1135
2008-05-20 16:19:15 -07:00