Merge branch 'fronkdev' into 'master'

Added Preorder count in unit table in AddressDB/View

See merge request fronk/thetool!198
This commit is contained in:
Frank Schubert
2024-01-24 13:27:36 +00:00

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>