Added Preorder count in unit table in AddressDB/View

This commit is contained in:
Frank Schubert
2024-01-24 14:27:02 +01:00
parent 808c846d88
commit 1ddbaa7fc8

View File

@@ -122,6 +122,7 @@
<th>Status</th>
<th>Beschreibung</th>
<th>Extref</th>
<th>Best.</th>
</tr>
<?php foreach($address->wohneinheiten as $unit): ?>
<tr>
@@ -139,6 +140,7 @@
<td class="text-monospace"><?=$unit->status->code?> - <?=$unit->status->name?></td>
<td><?=((string)$unit) ? "<strong>".(string)$unit."</strong>" : ""?></td>
<td><?=($unit->extref) ? "[".$unit->extref."]" : ""?></td>
<td title="Anzahl Bestellungen"><?=PreorderModel::count(["adb_wohneinheit_id" => $unit->id, "deleted" => 0])?></td>
</tr>
<?php endforeach; ?>
</table>