aboutsummaryrefslogtreecommitdiff
path: root/include/home.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/home.php
parentInitial Model class (diff)
Reorganise to have client use Model
Diffstat (limited to 'include/home.php')
-rw-r--r--include/home.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/home.php b/include/home.php
index 51d899b..a9dca1e 100644
--- a/include/home.php
+++ b/include/home.php
@@ -165,7 +165,7 @@ require('./header.php');
'start' => $start,
'end' => $end,
'id' => $offer->getId(),
- 'contactClientName' => $offer->getContact()->getClient()->getName(),
+ 'contactClientName' => $offer->getContact()->getClient()->name,
'percentage' => $percentage,
'price_excl' => constants::invoice_valuta . $offer->calculate(offer::SUBTOTAL),
'price_incl' => constants::invoice_valuta . $offer->calculate(offer::TOTAL)
@@ -208,7 +208,7 @@ require('./header.php');
foreach ($offers as $offer) {
echo "<tr>";
echo "<td>{$offer->getId()}</td>";
- echo "<td>{$offer->getContact()->getClient()->getName()}</td>";
+ echo "<td>{$offer->getContact()->getClient()->name}</td>";
echo "<td>".BusinessAdmin::formatDate($offer->getEndDate(), false)."</td>";
echo "</tr>";
}
@@ -249,7 +249,7 @@ require('./header.php');
foreach ($offers as $offer) {
echo "<tr>";
echo "<td>{$offer->getId()}</td>";
- echo "<td>{$offer->getContact()->getClient()->getName()}</td>";
+ echo "<td>{$offer->getContact()->getClient()->name}</td>";
echo "<td>".BusinessAdmin::formatDate($offer->getInvoiceDate(), false)."</td>";
echo "</tr>";
}