From 21455bfd1004c4a3153050ac5995b8dc680c2042 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 16:48:53 +0200 Subject: Class names start with a capital --- include/offers-view.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'include/offers-view.php') diff --git a/include/offers-view.php b/include/offers-view.php index 8f741c2..9b69dce 100644 --- a/include/offers-view.php +++ b/include/offers-view.php @@ -19,7 +19,7 @@ require_once('./login.php'); -$_offer = new offer($_pdo, $_id); +$_offer = new Offer($_pdo, $_id); ?>
@@ -40,8 +40,8 @@ $_offer = new offer($_pdo, $_id); 'assignments_header' => '' ); foreach ($_offer->getAssignments() as $assignment) { - $temp['assignments'] .= "{$assignment->getTitle()}
(".constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)

{$assignment->getDescription()}

"; - $temp['assignments_header'] .= "{$assignment->getTitle()}
(".constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)
"; + $temp['assignments'] .= "{$assignment->getTitle()}
(".Constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)

{$assignment->getDescription()}

"; + $temp['assignments_header'] .= "{$assignment->getTitle()}
(".Constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)
"; } $list[] = array_merge($temp, array('type' => 'start', 'time' => $_offer->getStartDate(), 'description' => 'Offer started')); $sort_list[] = $_offer->getStartDate() . $_offer->getId() . 0; @@ -106,17 +106,17 @@ $_offer = new offer($_pdo, $_id); echo " {$assignment->getId()} - {$assignment->getTitle()}
+ {$assignment->getTitle()}

{$assignment->getDescription()}

- {$assignment->getHours()}h + {$assignment->getHours()}h - ".constants::invoice_valuta."{$assignment->getPricePerHour()} / hr
- {$assignment->getVAT()}% VAT + ".Constants::invoice_valuta."{$assignment->getPricePerHour()} / hr
+ {$assignment->getVAT()}% VAT - - + + "; } @@ -149,16 +149,16 @@ $_offer = new offer($_pdo, $_id); echo " {$discount->getId()} - {$discount->getTitle()}
+ {$discount->getTitle()}

{$discount->getDescription()}

- ".constants::invoice_valuta."{$discount->getValue()} / hr
- {$discount->getVAT()}% VAT + ".Constants::invoice_valuta."{$discount->getValue()} / hr
+ {$discount->getVAT()}% VAT - - + + "; } -- cgit v1.2.3