Updated Shipping Note
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user