feat: Handle status 20 as cancelled
Treat orders with status 20 as effectively cancelled. This change ensures that these orders are excluded from active workflows and views: - Prevent workorder creation. - Hide from the default order view and overview counts. - Orders remain findable only via filtering.
This commit is contained in:
@@ -521,8 +521,12 @@
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php elseif($preorder->status->code != "20"): ?>
|
||||
<button type="button" class="btn btn-outline-primary create-workorder" onclick="createWorkorder(<?=$preorder->id?>)"><i class="fas fa-fw fa-plus"></i> <i class="fas fa-r"></i><i class="fas fa-fw fa-gears"></i> Wokorder erstellen</button>
|
||||
<?php elseif($preorder->status->code == "20"): ?>
|
||||
<div class="alert alert-info mt-2" role="alert">
|
||||
<i class="fas fa-info-circle"></i> Diese Preorder ist auf Hold gesetzt. Es kann keine Workorder erstellt werden.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
@@ -542,8 +546,10 @@
|
||||
<td class="text-monospace"><?=$preorder->adb_wohneinheit->ftu_data["id"]?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3>FCP</h3>
|
||||
<div class="col row">
|
||||
<h3 >FCP</h3>
|
||||
<?php
|
||||
if($preorder->fcp): ?>
|
||||
<table class="table table-sm table-striped">
|
||||
@@ -566,9 +572,12 @@
|
||||
</tr>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<p>Kein FCP zugewiesen</p>
|
||||
<div class="col-12 p-0">
|
||||
<div class="alert alert-info mt-2" role="alert">
|
||||
<i class="fas fa-info-circle"></i> Kein FCP zugewiesen/importert.
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user