Add currency rates for budget calculation

This commit is contained in:
Frederic Guillot
2015-03-28 18:00:18 -04:00
parent eb6853c163
commit 9bfab51e00
27 changed files with 420 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ class Budget extends Base
foreach ($rates as $rate) {
if ($rate['user_id'] == $record['user_id'] && date('Y-m-d', $rate['date_effective']) <= date('Y-m-d', $record['start'])) {
$hourly_price = $rate['rate'];
$hourly_price = $this->currency->getPrice($rate['currency'], $rate['rate']);
break;
}
}