diff options
author | Camil Staps | 2016-07-28 09:05:20 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-28 09:07:39 +0200 |
commit | a9c5778232079a09000c519a414563a1e04e112d (patch) | |
tree | 55dfead4b6911f05f092fe366bd2fbd2b492e6fd /include/offers-overview.php | |
parent | Made database settings definitions (diff) |
Split Calculatable in trait and interface
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r-- | include/offers-overview.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php index 6c5135a..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(CALCULATABLE_SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$assignment->calculate(CALCULATABLE_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(CALCULATABLE_SUBTOTAL)} excl. VAT, ".Constants::invoice_valuta."{$discount->calculate(CALCULATABLE_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(CALCULATABLE_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(CALCULATABLE_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(CALCULATABLE_TOTAL)}</td> + <td>".Constants::invoice_valuta."{$offer->calculate(Calculatable::TOTAL)}</td> </tr> </table> </td> |