aboutsummaryrefslogtreecommitdiff
path: root/include/offers-overview.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 16:18:13 +0200
committerCamil Staps2016-07-27 16:18:13 +0200
commit08e6ca70604aff5169dbcbf5b74215628ae4097e (patch)
tree2fabea3a1bfd1ebf2d3ab3aa02a93aa8a51a779c /include/offers-overview.php
parentInitial Model class (diff)
Reorganise to have client use Model
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 7fd2de2..a246190 100644
--- a/include/offers-overview.php
+++ b/include/offers-overview.php
@@ -43,7 +43,7 @@ require_once('./login.php');
echo "<tr>
<td class='col-min-width'>{$offer->getId()}</td>
- <td class='col-min-width'><span title='{$offer->getContact()->getClient()->getName()}'>{$offer->getContact()->getName()}</span></td>
+ <td class='col-min-width'><span title='{$offer->getContact()->getClient()->name}'>{$offer->getContact()->getName()}</span></td>
<td class='col-max-width'>";
foreach ($offer->getAssignments() as $assignment) {
echo "<b>{$assignment->getTitle()}</b><br/><span class='smaller'>(".constants::invoice_valuta."{$assignment->calculate(assignment::SUBTOTAL)} excl. VAT, ".constants::invoice_valuta."{$assignment->calculate(assignment::TOTAL)} incl. VAT)</span><br/><p>{$assignment->getDescription()}</p>";
@@ -120,7 +120,7 @@ require_once('./login.php');
<select name="contactId" class="form-control">
<?php
foreach (BusinessAdmin::getContacts($_pdo) as $contact) {
- echo "<option value='{$contact->getId()}'>{$contact->getName()} ({$contact->getClient()->getName()})</option>";
+ echo "<option value='{$contact->getId()}'>{$contact->getName()} ({$contact->getClient()->name})</option>";
}
?>
</select>