From a9c5778232079a09000c519a414563a1e04e112d Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 28 Jul 2016 09:05:20 +0200 Subject: Split Calculatable in trait and interface --- 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 6c5135a..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(CALCULATABLE_SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(CALCULATABLE_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(CALCULATABLE_SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(CALCULATABLE_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(CALCULATABLE_SUBTOTAL)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::SUBTOTAL)}
VAT:".Constants::invoice_valuta."{$offer->calculate(CALCULATABLE_VAT)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::VAT)}
Total:".Constants::invoice_valuta."{$offer->calculate(CALCULATABLE_TOTAL)}".Constants::invoice_valuta."{$offer->calculate(Calculatable::TOTAL)}
-- cgit v1.2.3