Added termination address in order list

This commit is contained in:
Frank Schubert
2021-08-03 21:02:37 +02:00
parent 33d8e2da0e
commit 0e386e0152
3 changed files with 34 additions and 2 deletions

View File

@@ -46,8 +46,11 @@
<?=$order->owner->zip?> <?=$order->owner->city?>
</td>
<td>
<?=$order->termination->building->street?><?=($order->termination->name) ? " ".$order->termination->name : ""?><br />
<?=$order->termination->building->zip?> <?=$order->termination->building->city?>
<?php if(is_array($order->terminations) && count($order->terminations)): ?>
<?=$order->terminations[0]->building->street?><?=($order->terminations[0]->name) ? " ".$order->terminations[0]->name : ""?><br />
<?=$order->terminations[0]->building->zip?> <?=$order->terminations[0]->building->city?>
<?php endif; ?>
</td>
<td class="text-monospace"><?=date("d.m.Y", $order->order_date)?></td>
<td class="text-monospace"><?=date("d.m.Y", $order->edit)?></td>