preorder count in Adressdb/View is now link

This commit is contained in:
Frank Schubert
2025-03-05 16:46:11 +01:00
parent 0c5ba254fd
commit b0e842dfe1

View File

@@ -184,7 +184,13 @@
</td>
<td><?=((string)$unit) ? "<strong>".(string)$unit."</strong>" : ""?></td>
<td><?=($unit->extref) ? "[".$unit->extref."]" : ""?></td>
<td title="Anzahl Bestellungen"><?=PreorderModel::countActive(["adb_wohneinheit_id" => $unit->id])?></td>
<td title="Anzahl Bestellungen">
<?php if(is_array($unit->active_preorders) && count($unit->active_preorders)): ?>
<a href="<?=self::getUrl("Preorder", "", [ "filter" => ["adb_wohneinheit_id" => $unit->id]])?>" target="_blank"><?=count($unit->preorders)?></a>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>