Added Preorder discount code import and statusupdate import

This commit is contained in:
Frank Schubert
2024-06-04 18:09:01 +02:00
parent 7d969e54ba
commit ce3e8f07e6
11 changed files with 593 additions and 6 deletions
@@ -143,6 +143,25 @@
<td><?=($preorder->address_info == "address") ? "Anschlussadresse" : "Kontaktadresse"?></td>
</tr>
</table>
<?php if($preorder->discounts): ?>
<h3>Gutscheincodes</h3>
<table class="table table-sm table-striped">
<tr>
<th>Code</th>
<th>Zugewiesen</th>
<th>Info</th>
</tr>
<?php foreach($preorder->discounts as $discount): ?>
<tr>
<td class="text-monospace"><?=$discount->code?></td>
<td class="text-monospace"><?=date("d.m.Y H:i", $discount->assigned)?></td>
<td><?=htmlentities($discount->info)?></td>
</tr>
<?php endforeach; ?>
</tr>
</table>
<?php endif; ?>
</div>
<div class="col-6">
@@ -398,12 +417,12 @@
data-default="<?=($preorder->adb_wohneinheit->patch_cluster) ? $preorder->adb_wohneinheit->patch_cluster : $preorder->adb_hausnummer->netzgebiet->extref?>"
/></td>
</tr><tr>
<th>Shelf:</td>
<th>Shelf:</th>
<td><input type="text" class="form-control" name="patch_shelf"
data-default="<?=$preorder->adb_wohneinheit->patch_shelf?>"
/></td>
</tr><tr>
<th>Module:</td>
<th>Module:</th>
<td><input type="text" class="form-control" name="patch_module"
data-default="<?=$preorder->adb_wohneinheit->patch_module?>"
/></td>