Updated Shipping Note

This commit is contained in:
Luca Haid
2025-01-21 09:23:10 +01:00
parent 38d5cd1861
commit f5e167d477
3 changed files with 90 additions and 11 deletions

View File

@@ -421,7 +421,13 @@ class WarehouseShippingNoteController extends TTCrud {
$shippingNote['status'] = $status;
WarehouseShippingNoteModel::update($shippingNote);
self::returnJson(['success' => true, 'message' => 'Status wurde geändert']);
$statusNiceText = [
'new' => 'Neu',
'in_progress' => 'In Bearbeitung',
'accepted' => 'Akzeptiert',
'invoiced' => 'In Rechnung gestellt',
];
self::returnJson(['success' => true, 'message' => 'Status wurde auf ' . $statusNiceText[$status] . ' geändert']);
}
//TODO: either move this to TimerecordingCarController or make it better