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/discounts-overview.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/discounts-overview.php') diff --git a/include/discounts-overview.php b/include/discounts-overview.php index 60ddf13..0b0534d 100644 --- a/include/discounts-overview.php +++ b/include/discounts-overview.php @@ -39,25 +39,25 @@ require_once('./login.php'); $discounts = BusinessAdmin::getDiscounts($_pdo); foreach ($discounts as $discount) { echo " - {$discount->getId()} + data-mixer-order-value='{$discount->value}'> + {$discount->id} #{$discount->getOffer()->getId()} to {$discount->getOffer()->getContact()->getName()} ({$discount->getOffer()->getContact()->getClient()->name}) - {$discount->getTitle()}
-

{$discount->getDescription(false)}

+ {$discount->title}
+

{$discount->description}

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