aboutsummaryrefslogtreecommitdiff
path: root/include/offers-overview.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 21:36:56 +0200
committerCamil Staps2016-07-27 21:36:56 +0200
commitae7e885619c0a3112765d9e32df2b3dd68a35d6a (patch)
treea25eb564998b9b68027f2758b6f90d7be22dd7b1 /include/offers-overview.php
parentOffer: use Model (diff)
Move SUBTOTAL, VAT and TOTAL to Calculatable
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r--include/offers-overview.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php
index 7c4127f..1118793 100644
--- a/include/offers-overview.php
+++ b/include/offers-overview.php
@@ -46,10 +46,10 @@ require_once('./login.php');
<td class='col-min-width'><span title='{$offer->getContact()->getClient()->name}'>{$offer->getContact()->name}</span></td>
<td class='col-max-width'>";
foreach ($offer->getAssignments() as $assignment) {
- echo "<b>{$assignment->title}</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->getHTMLDescription()}</p>";
+ echo "<b>{$assignment->title}</b><br/><span class='smaller'>(".Constants::invoice_valuta."{$assignment->calculate(Calculatable::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(Calculatable::TOTAL)} incl. VAT)</span><br/><p>{$assignment->getHTMLDescription()}</p>";
}
foreach ($offer->getDiscounts() as $discount) {
- echo "<b>{$discount->title}</b><br/><span class='smaller'>(".Constants::invoice_valuta."{$discount->calculate(discount::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(discount::TOTAL)} incl. VAT)</span><br/><p>{$discount->description}</p>";
+ echo "<b>{$discount->title}</b><br/><span class='smaller'>(".Constants::invoice_valuta."{$discount->calculate(Calculatable::SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(Calculatable::TOTAL)} incl. VAT)</span><br/><p>{$discount->description}</p>";
}
echo "</td>
<td class='col-min-width'>
@@ -82,15 +82,15 @@ require_once('./login.php');
<table>
<tr>
<th style='padding-right:1em;'>Subtotal:</th>
- <td>".Constants::invoice_valuta."{$offer->calculate(offer::SUBTOTAL)}</td>
+ <td>".Constants::invoice_valuta."{$offer->calculate(Calculatable::SUBTOTAL)}</td>
</tr>
<tr>
<th style='padding-right:1em;'>VAT:</th>
- <td>".Constants::invoice_valuta."{$offer->calculate(offer::VAT)}</td>
+ <td>".Constants::invoice_valuta."{$offer->calculate(Calculatable::VAT)}</td>
<tr>
</tr>
<th style='padding-right:1em;'>Total:</th>
- <td>".Constants::invoice_valuta."{$offer->calculate(offer::TOTAL)}</td>
+ <td>".Constants::invoice_valuta."{$offer->calculate(Calculatable::TOTAL)}</td>
</tr>
</table>
</td>