Eric Davis
075310da6b
Swapped inject with a simple sum method. #1924
2009-01-21 15:26:46 -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
50a466d7af
Ported HourlyDeliverable.spent to use Rate. #1924
2009-01-21 14:27:12 -08:00
Eric Davis
1b8d4c6d52
Moved methods from HourlyDeliverable to Deliverable. #1439
2008-07-10 17:44:29 -07:00
Eric Davis
5e36cf455e
Catch nil cost_per_hour and total_hours on the HourlyDeliverable.profit. #1387
2008-06-26 16:39:20 -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
9989b6971b
Adding dollar signs or % to amounts
...
* Added number_or_percent helper to return the correct string
* Deliverable.labor_budget will now return 0.0 if it's nil
#1274
2008-06-12 16:05:02 -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
6c6f756de8
Added labor_budget virtual field and made that the Budget column. #1190
2008-06-09 15:31:57 -07:00
Eric Davis
490bf73efe
Calc cleanup
2008-06-03 17:19:30 -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
8548d46637
Added support for STI deliverables
...
* HourlyDeliverables cost are based on the time used
* FixedDeliverables are based on a flat rate
* Added a checkbox on the new Deliverable form to pick which one to use
#1135
2008-05-21 09:15:52 -07:00