From: Alexander Smirnov Date: Tue, 27 Aug 2024 12:51:44 +0000 (+0300) Subject: [ERP-165] комментарий X-Git-Tag: 1.4~19^2~5 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f42266038f6da0b611aaca9de02e40b4ef410c46;p=erp24_rep%2Fyii-erp24%2F.git [ERP-165] комментарий --- diff --git a/erp24/api3/modules/v1/controllers/claim/WorkerController.php b/erp24/api3/modules/v1/controllers/claim/WorkerController.php index ef814c7a..abd2d666 100644 --- a/erp24/api3/modules/v1/controllers/claim/WorkerController.php +++ b/erp24/api3/modules/v1/controllers/claim/WorkerController.php @@ -46,7 +46,7 @@ class WorkerController extends \yii_app\api3\controllers\ActiveController public function actionCreate() { - // Удаляем старые заявки + // Делаем старые заявки неактивными EmployeeOnShift::updateAll(['active' => EmployeeOnShift::ACTIVE_OFF], [ 'and', ['status' => [EmployeeOnShift::STATUS_INITIAL, EmployeeOnShift::STATUS_REJECT]],