diff options
author | Camil Staps | 2016-07-27 16:18:13 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 16:18:13 +0200 |
commit | 08e6ca70604aff5169dbcbf5b74215628ae4097e (patch) | |
tree | 2fabea3a1bfd1ebf2d3ab3aa02a93aa8a51a779c /include/discounts-overview.php | |
parent | Initial Model class (diff) |
Reorganise to have client use Model
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 f9a3630..d4d8245 100644 --- a/include/discounts-overview.php +++ b/include/discounts-overview.php @@ -46,7 +46,7 @@ require_once('./login.php'); <td class='col-min-width'> <a href='".constants::url_internal."/offers?id={$discount->getOffer()->getId()}'>#{$discount->getOffer()->getId()}</a> to <a href='".constants::url_internal."/contacts?id={$discount->getOffer()->getContact()->getId()}'>{$discount->getOffer()->getContact()->getName()}</a> - (<a href='".constants::url_internal."/clients?id={$discount->getOffer()->getContact()->getClient()->getId()}'>{$discount->getOffer()->getContact()->getClient()->getName()}</a>) + (<a href='".constants::url_internal."/clients?id={$discount->getOffer()->getContact()->getClient()->id}'>{$discount->getOffer()->getContact()->getClient()->name}</a>) <td class='col-max-width'> <b><a href='#' class='editable' id='editable-discount-{$discount->getId()}-title' data-type='text' data-pk='{$discount->getId()}' data-url='".constants::url_external."discounts/edit'>{$discount->getTitle()}</a></b><br/> <p><a href='#' class='editable editable-noshow' id='editable-discount-{$discount->getId()}-description' data-type='textarea' data-mode='inline' data-pk='{$discount->getId()}' data-url='".constants::url_external."discounts/edit'>{$discount->getDescription(false)}</a></p> @@ -83,7 +83,7 @@ require_once('./login.php'); <select name="offerId" class="form-control"> <?php foreach (BusinessAdmin::getOffers($_pdo) as $offer) { - echo "<option value='{$offer->getId()}'>#{$offer->getId()} to {$offer->getContact()->getName()} ({$offer->getContact()->getClient()->getName()})</option>"; + echo "<option value='{$offer->getId()}'>#{$offer->getId()} to {$offer->getContact()->getName()} ({$offer->getContact()->getClient()->name})</option>"; } ?> </select> |