aboutsummaryrefslogtreecommitdiff
path: root/include/home.php
diff options
context:
space:
mode:
authorCamil Staps2015-03-11 10:58:44 +0100
committerCamil Staps2015-03-11 10:58:44 +0100
commitc36fcd215d757f92a5af3d14eb73452bffcaf22e (patch)
treece9aaf138da34103292f87b86a693e013cc2cfe2 /include/home.php
parentMinor layout enhancement for the dashboard (diff)
Prices on active offers
Diffstat (limited to 'include/home.php')
-rw-r--r--include/home.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/home.php b/include/home.php
index 75ecb6e..0f55ede 100644
--- a/include/home.php
+++ b/include/home.php
@@ -160,12 +160,13 @@ require('header.php');
'end' => $end,
'id' => $offer->getId(),
'contactClientName' => $offer->getContact()->getClient()->getName(),
- 'percentage' => $percentage
+ 'percentage' => $percentage,
+ 'price' => constants::invoice_valuta . $offer->calculate(offer::SUBTOTAL)
);
}
krsort($list, SORT_STRING);
foreach ($list as $item) {
- echo "<p>#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']})<span class='pull-right text-muted'>{$item['percentage']}% complete</span></p>
+ echo "<p>#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}; {$item['price']})<span class='pull-right text-muted'>{$item['percentage']}% complete</span></p>
<div class='progress progress-striped active' style='clear:both;'>
<div class='progress-bar progress-bar-".($item['percentage'] < 60 ? 'info' : ($item['percentage'] < 80 ? 'warning' : 'danger'))."' style='width:{$item['percentage']}%;' aria-valuemax='100' aria-valuemin='0' aria-valuenow='{$item['percentage']}' role='progressbar'></div>
</div>";