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
4f18c28bba
Ported FixedDeliverable.spent to use Rate. #1924
2009-01-21 14:31:06 -08: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
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
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
65da8e7594
Completed deliverable.spent calculation. #1136
2008-05-28 12:55:02 -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
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