aboutsummaryrefslogtreecommitdiff
path: root/include/offers-view.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 14:11:06 +0200
committerCamil Staps2016-08-01 14:11:06 +0200
commit46198a89ccc8e6750a37e1b9127f57238242fadf (patch)
treede6c0bc2f55b759a0db6471fc0b820ee5433e648 /include/offers-view.php
parentUse Model::search in child::get* methods (diff)
Array shorthands
Diffstat (limited to 'include/offers-view.php')
-rw-r--r--include/offers-view.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/offers-view.php b/include/offers-view.php
index cce5a66..09eff5b 100644
--- a/include/offers-view.php
+++ b/include/offers-view.php
@@ -159,28 +159,28 @@ $_offer = new Offer($_pdo, $_id);
<div class="panel-body">
<ul class="timeline">
<?php
- $list = array();
- $sort_list = array();
+ $list = [];
+ $sort_list = [];
- $temp = array(
+ $temp = [
'id' => $_offer->id,
'contact' => $_offer->getContact()->name,
'assignments' => '',
'assignments_header' => ''
- );
+ ];
foreach ($_offer->getAssignments() as $assignment) {
$temp['assignments'] .= "<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>";
$temp['assignments_header'] .= "<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/>";
}
- $list[] = array_merge($temp, array('type' => 'start', 'time' => $_offer->start_date, 'description' => 'Offer started'));
+ $list[] = array_merge($temp, ['type' => 'start', 'time' => $_offer->start_date, 'description' => 'Offer started']);
$sort_list[] = $_offer->start_date . $_offer->id . 0;
- $list[] = array_merge($temp, array('type' => 'end', 'time' => $_offer->end_date, 'description' => 'Offer ended'));
+ $list[] = array_merge($temp, ['type' => 'end', 'time' => $_offer->end_date, 'description' => 'Offer ended']);
$sort_list[] = $_offer->end_date . $_offer->id . 1;
if ($_offer->invoice_date > 0) {
- $list[] = array_merge($temp, array('type' => 'invoice', 'time' => $_offer->invoice_date, 'description' => 'Invoice sent'));
+ $list[] = array_merge($temp, ['type' => 'invoice', 'time' => $_offer->invoice_date, 'description' => 'Invoice sent']);
$sort_list[] = $_offer->invoice_date . $_offer->id . 2;
if ($_offer->getPaymentReceived() > 0) {
- $list[] = array_merge($temp, array('type' => 'payment_received', 'time' => $_offer->getPaymentReceived(), 'description' => 'Payment received'));
+ $list[] = array_merge($temp, ['type' => 'payment_received', 'time' => $_offer->getPaymentReceived(), 'description' => 'Payment received']);
$sort_list[] = $_offer->getPaymentReceived() . $_offer->id . 3;
}
}