diff options
Diffstat (limited to 'include/discounts-overview.php')
-rw-r--r-- | include/discounts-overview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/discounts-overview.php b/include/discounts-overview.php index c6c3421..93b24d4 100644 --- a/include/discounts-overview.php +++ b/include/discounts-overview.php @@ -36,7 +36,7 @@ require_once(__DIR__ . '/../login.php'); </thead> <tbody> <?php - $discounts = BusinessAdmin::getDiscounts($_pdo); + $discounts = Discount::search($_pdo); foreach ($discounts as $discount) { echo "<tr class='mix' data-mixer-order-id='{$discount->id}' @@ -82,7 +82,7 @@ require_once(__DIR__ . '/../login.php'); <label>Offer:</label> <select name="offerId" class="form-control"> <?php - foreach (BusinessAdmin::getOffers($_pdo) as $offer) { + foreach (Offer::search($_pdo) as $offer) { echo "<option value='{$offer->id}'>#{$offer->id} to {$offer->getContact()->name} ({$offer->getContact()->getClient()->name})</option>"; } ?> |