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/home.php | |
parent | Initial Model class (diff) |
Reorganise to have client use Model
Diffstat (limited to 'include/home.php')
-rw-r--r-- | include/home.php | 6 |
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>"; } |