aboutsummaryrefslogtreecommitdiff
path: root/include/home.php
diff options
context:
space:
mode:
authorCamil Staps2015-08-26 12:49:33 +0200
committerCamil Staps2015-08-26 12:49:33 +0200
commite5f182e30646abcce43fb53f87c8a314734872d9 (patch)
tree33380f9f9602f74901e0ea870e9cce6671784d6d /include/home.php
parentAdded small intended feature change (diff)
Show price incl. and excl. VAT in 'Currently active offers' on the dashboard
Diffstat (limited to 'include/home.php')
-rw-r--r--include/home.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/home.php b/include/home.php
index 0aca402..9d99dac 100644
--- a/include/home.php
+++ b/include/home.php
@@ -161,12 +161,13 @@ require('header.php');
'id' => $offer->getId(),
'contactClientName' => $offer->getContact()->getClient()->getName(),
'percentage' => $percentage,
- 'price' => constants::invoice_valuta . $offer->calculate(offer::SUBTOTAL)
+ 'price_excl' => constants::invoice_valuta . $offer->calculate(offer::SUBTOTAL),
+ 'price_incl' => constants::invoice_valuta . $offer->calculate(offer::TOTAL)
);
}
krsort($list, SORT_STRING);
foreach ($list as $item) {
- echo "<p>#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}; {$item['price']})<span class='pull-right text-muted'>{$item['percentage']}% complete</span></p>
+ echo "<p>#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}; {$item['price_excl']} excl. VAT, {$item['price_incl']} incl. VAT)<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>";
@@ -333,4 +334,4 @@ require('header.php');
<!-- /#page-wrapper -->
</div>
-<!-- /#wrapper --> \ No newline at end of file
+<!-- /#wrapper -->