summaryrefslogtreecommitdiff
path: root/app/Model/Budget.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-28 18:00:18 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-28 18:00:18 -0400
commit9bfab51e00608b6e008aa71f6df74104b28fc662 (patch)
treec390346c8ed384c78bf85bbdd950d70bd9a9ab51 /app/Model/Budget.php
parenteb6853c163e9059bbbc89a1a741d4a25c8e04153 (diff)
Add currency rates for budget calculation
Diffstat (limited to 'app/Model/Budget.php')
-rw-r--r--app/Model/Budget.php2
1 files changed, 1 insertions, 1 deletions
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;
}
}