From e5f182e30646abcce43fb53f87c8a314734872d9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 26 Aug 2015 12:49:33 +0200 Subject: Show price incl. and excl. VAT in 'Currently active offers' on the dashboard --- include/home.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 "

#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}; {$item['price']}){$item['percentage']}% complete

+ echo "

#{$item['id']} to {$item['contactClientName']} ({$item['start']} - {$item['end']}; {$item['price_excl']} excl. VAT, {$item['price_incl']} incl. VAT){$item['percentage']}% complete

"; @@ -333,4 +334,4 @@ require('header.php'); - \ No newline at end of file + -- cgit v1.2.3