From ee7b6b8cc0cb8619c298f533a2ac791d7aa3b57c Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 20:54:34 +0200 Subject: Discount: use Model --- include/offers-view.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/offers-view.php') diff --git a/include/offers-view.php b/include/offers-view.php index 6b84e5c..9a2978f 100644 --- a/include/offers-view.php +++ b/include/offers-view.php @@ -147,18 +147,18 @@ $_offer = new Offer($_pdo, $_id); $discounts = BusinessAdmin::getDiscounts($_pdo, array("offerId = {$_offer->getId()}")); foreach ($discounts as $discount) { echo " - {$discount->getId()} + {$discount->id} - {$discount->getTitle()}
-

{$discount->getDescription()}

+ {$discount->title}
+

{$discount->description}

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