From 9bfab51e00608b6e008aa71f6df74104b28fc662 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 Mar 2015 18:00:18 -0400 Subject: Add currency rates for budget calculation --- app/Model/Budget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/Budget.php') diff --git a/app/Model/Budget.php b/app/Model/Budget.php index fe8457bd..d74dd870 100644 --- a/app/Model/Budget.php +++ b/app/Model/Budget.php @@ -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; } } -- cgit v1.2.3