diff options
Diffstat (limited to 'include')
-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>"; |