added multiple selection for problems

This commit is contained in:
Luca Haid
2025-08-26 10:27:47 +02:00
parent 367a3eb63d
commit b912b4250d
2 changed files with 83 additions and 29 deletions

View File

@@ -327,6 +327,13 @@ class RMLWorkorderAdminController extends TTCrud
self::sendError("Die Dokumentation muss zuerst von der Firma als fertig markiert werden.");
}
$preorder = new Preorder($workorder->preorderId);
if ($preorder) {
$preorder->status_id = 11; // Assuming 11 is the status for "fiber in building"
$preorder->edit_by = $this->user->id;
$preorder->save();
}
$oldStatus = $workorder->status;
$workorder->status = 'completed';
RMLWorkorderModel::update((array)$workorder);