diff options
author | Camil Staps | 2015-03-11 10:58:44 +0100 |
---|---|---|
committer | Camil Staps | 2015-03-11 10:58:44 +0100 |
commit | c36fcd215d757f92a5af3d14eb73452bffcaf22e (patch) | |
tree | ce9aaf138da34103292f87b86a693e013cc2cfe2 /include/home.php | |
parent | Minor layout enhancement for the dashboard (diff) |
Prices on active offers
Diffstat (limited to 'include/home.php')
-rw-r--r-- | include/home.php | 5 |
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>"; |