diff options
Diffstat (limited to 'include/offers-view.php')
-rw-r--r-- | include/offers-view.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-view.php b/include/offers-view.php index 56359ae..cce5a66 100644 --- a/include/offers-view.php +++ b/include/offers-view.php @@ -37,7 +37,7 @@ $_offer = new Offer($_pdo, $_id); </thead> <tbody> <?php - $assignments = BusinessAdmin::getAssignments($_pdo, array("offerId = {$_offer->id}")); + $assignments = $_offer->getAssignments(); foreach ($assignments as $assignment) { echo "<tr> <td class='col-min-width'>{$assignment->id}</td> @@ -80,7 +80,7 @@ $_offer = new Offer($_pdo, $_id); </thead> <tbody> <?php - $discounts = BusinessAdmin::getDiscounts($_pdo, array("offerId = {$_offer->id}")); + $discounts = $_offer->getDiscounts(); foreach ($discounts as $discount) { echo "<tr> <td class='col-min-width'>{$discount->id}</td> |