fixed addr for preorderlogistics

This commit is contained in:
Luca Haid
2025-08-26 13:18:25 +02:00
parent a8667df1ab
commit dc2826ffb7
2 changed files with 25 additions and 16 deletions

View File

@@ -35,18 +35,27 @@
</div>
<div style="margin-top: 28pt">
<p>
<?php if($preorder->company): ?>
<?=nl2br($preorder->company)?><br />
<?php else: ?>
<br />
<?php endif; ?>
<?php if($preorder->lastname): ?>
<?=$preorder->firstname?> <?=$preorder->lastname?><br />
<?php endif; ?>
<?=$preorder->street?> <?=$preorder->housenumber?><br />
<?=$preorder->zip?> <?=$preorder->city?>
</p>
<p>
<?php if($preorder->company): ?>
<?=nl2br(htmlspecialchars($preorder->company))?><br />
<?php else: ?>
<br />
<?php endif; ?>
<?php if($preorder->lastname): ?>
<?=htmlspecialchars($preorder->firstname)?> <?=htmlspecialchars($preorder->lastname)?><br />
<?php endif; ?>
<?php if ($preorder->adb_hausnummer_id): ?>
<?= htmlspecialchars($preorder->adb_hausnummer->strasse->name) ?> <?= htmlspecialchars($preorder->adb_hausnummer->hausnummer) ?><br/>
<?php if ($preorder->adb_wohneinheit_id && (string)$preorder->adb_wohneinheit): ?>
<?= htmlspecialchars((string)$preorder->adb_wohneinheit) ?><br />
<?php endif; ?>
<?= htmlspecialchars($preorder->adb_hausnummer->plz->plz) ?> <?= htmlspecialchars($preorder->adb_hausnummer->ortschaft->name) ?>
<?php else: ?>
<?=htmlspecialchars($preorder->street)?> <?=htmlspecialchars($preorder->housenumber)?><br />
<?=htmlspecialchars($preorder->zip)?> <?=htmlspecialchars($preorder->city)?>
<?php endif; ?>
</p>
<p style="text-align: right; padding-top: 4pt;">Liezen, <?=date("d.m.Y")?></p>
<p style="padding-top: 4pt;">Liebe(r) <?=($preorder->firstname) ? $preorder->firstname : ""?> <?=($preorder->lastname) ? $preorder->lastname : ""?>,</p>