From ae7e885619c0a3112765d9e32df2b3dd68a35d6a Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 21:36:56 +0200 Subject: Move SUBTOTAL, VAT and TOTAL to Calculatable --- include/offers-overview.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/offers-overview.php') diff --git a/include/offers-overview.php b/include/offers-overview.php index 7c4127f..1118793 100644 --- a/include/offers-overview.php +++ b/include/offers-overview.php @@ -46,10 +46,10 @@ require_once('./login.php'); {$offer->getContact()->name} "; foreach ($offer->getAssignments() as $assignment) { - echo "{$assignment->title}
(".Constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)

{$assignment->getHTMLDescription()}

"; + echo "{$assignment->title}
(".Constants::invoice_valuta."{$assignment->calculate(Calculatable::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(Calculatable::TOTAL)} incl. VAT)

{$assignment->getHTMLDescription()}

"; } foreach ($offer->getDiscounts() as $discount) { - echo "{$discount->title}
(".Constants::invoice_valuta."{$discount->calculate(discount::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(discount::TOTAL)} incl. VAT)

{$discount->description}

"; + echo "{$discount->title}
(".Constants::invoice_valuta."{$discount->calculate(Calculatable::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(Calculatable::TOTAL)} incl. VAT)

{$discount->description}

"; } echo " @@ -82,15 +82,15 @@ require_once('./login.php'); - + - + - +
Subtotal:".Constants::invoice_valuta."{$offer->calculate(offer::SUBTOTAL)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::SUBTOTAL)}
VAT:".Constants::invoice_valuta."{$offer->calculate(offer::VAT)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::VAT)}
Total:".Constants::invoice_valuta."{$offer->calculate(offer::TOTAL)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::TOTAL)}
-- cgit v1.2.3