diff options
author | Camil Staps | 2016-07-27 20:54:34 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 20:54:34 +0200 |
commit | ee7b6b8cc0cb8619c298f533a2ac791d7aa3b57c (patch) | |
tree | 21cdd4e07585887e72c2de08b8c235b1aa10d3ec /include/offers-view.php | |
parent | Assignment: use Model (diff) |
Discount: use Model
Diffstat (limited to 'include/offers-view.php')
-rw-r--r-- | include/offers-view.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/offers-view.php b/include/offers-view.php index 6b84e5c..9a2978f 100644 --- a/include/offers-view.php +++ b/include/offers-view.php @@ -147,18 +147,18 @@ $_offer = new Offer($_pdo, $_id); $discounts = BusinessAdmin::getDiscounts($_pdo, array("offerId = {$_offer->getId()}")); foreach ($discounts as $discount) { echo "<tr> - <td class='col-min-width'>{$discount->getId()}</td> + <td class='col-min-width'>{$discount->id}</td> <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>{$discount->getDescription()}</p> + <b><a href='#' class='editable' id='editable-discount-{$discount->id}-title' data-type='text' data-pk='{$discount->id}' data-url='".Constants::url_external."discounts/edit'>{$discount->title}</a></b><br/> + <p>{$discount->description}</p> </td> <td class='col-min-width'> - ".Constants::invoice_valuta."<a href='#' class='editable' id='editable-discount-{$discount->getId()}-value' data-type='text' data-pk='{$discount->getId()}' data-url='".Constants::url_external."discounts/edit'>{$discount->getValue()}</a> / hr<br/> - <a href='#' class='editable' id='editable-discount-{$discount->getId()}-vat' data-type='text' data-pk='{$discount->getId()}' data-url='".Constants::url_external."discounts/edit'>{$discount->getVAT()}</a>% VAT + ".Constants::invoice_valuta."<a href='#' class='editable' id='editable-discount-{$discount->id}-value' data-type='text' data-pk='{$discount->id}' data-url='".Constants::url_external."discounts/edit'>{$discount->value}</a> / hr<br/> + <a href='#' class='editable' id='editable-discount-{$discount->id}-vat' data-type='text' data-pk='{$discount->id}' data-url='".Constants::url_external."discounts/edit'>{$discount->VAT_percentage}</a>% VAT </td> <td class='col-min-width'> - <a title='View' href='".Constants::url_internal."/discounts?id={$discount->getId()}' class='btn btn-primary btn-circle fa fa-arrow-right'></a> - <a title='Delete' href='".Constants::url_internal."/discounts?delete={$discount->getId()}' class='btn btn-danger btn-circle fa fa-times'></a> + <a title='View' href='".Constants::url_internal."/discounts?id={$discount->id}' class='btn btn-primary btn-circle fa fa-arrow-right'></a> + <a title='Delete' href='".Constants::url_internal."/discounts?delete={$discount->id}' class='btn btn-danger btn-circle fa fa-times'></a> </td> </tr>"; } |