aboutsummaryrefslogtreecommitdiff
path: root/include/offers-overview.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 13:48:14 +0200
committerCamil Staps2016-08-01 13:53:12 +0200
commitefa2936ec538c236dcec71f419ad714524c7d2b9 (patch)
tree1d7e1903851fc4c37c72cf8ee8de006979bb8b4e /include/offers-overview.php
parentPaypal not on by default in braintree (diff)
Removed BusinessAdmin::get* methods, added Model::search and
Model::count
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r--include/offers-overview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php
index 090a036..09b8cfd 100644
--- a/include/offers-overview.php
+++ b/include/offers-overview.php
@@ -37,7 +37,7 @@ require_once(__DIR__ . '/../login.php');
</thead>
<tbody>
<?php
- $offers = BusinessAdmin::getOffers($_pdo);
+ $offers = Offer::search($_pdo);
foreach ($offers as $offer) {
$invoiceFile = $offer->getInvoiceFile();
@@ -122,7 +122,7 @@ require_once(__DIR__ . '/../login.php');
<label>Contact:</label>
<select name="contactId" class="form-control">
<?php
- foreach (BusinessAdmin::getContacts($_pdo) as $contact) {
+ foreach (Contact::search($_pdo) as $contact) {
echo "<option value='{$contact->id}'>{$contact->name} ({$contact->getClient()->name})</option>";
}
?>