From: marina Date: Tue, 16 Jul 2024 09:30:03 +0000 (+0300) Subject: ERP-112 Изменения в скрипте объединения фактов смен X-Git-Tag: 1.4~76^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=409adb1668777a990b8d61d3d8dba6d322874d01;p=erp24_rep%2Fyii-erp24%2F.git ERP-112 Изменения в скрипте объединения фактов смен --- diff --git a/erp24/commands/TimetableController.php b/erp24/commands/TimetableController.php index 129f0bef..ed2f7fb6 100644 --- a/erp24/commands/TimetableController.php +++ b/erp24/commands/TimetableController.php @@ -23,7 +23,7 @@ class TimetableController extends Controller $checkIn->plan_id = $timetableFactModel->checkinStart->plan_id ?? 0; $checkIn->store_id = $timetableFactModel->store_id; $checkIn->ball = 5; - $checkIn->comment = "Закрыта автоматически"; + $checkIn->comment = "Закрыта автоматически " . date('d-m-Y H-i-s'); $checkIn->d_id = $timetableFactModel->d_id; $checkIn->date = $timetableFactModel->date_shift; $checkIn->time = date('Y-m-d H:i:s', strtotime('+14 hours', strtotime($timetableFactModel->date_start . ' ' . $timetableFactModel->time_start))); @@ -45,7 +45,7 @@ class TimetableController extends Controller $timetableFactModel->time_end = date("H:i:s", strtotime($checkIn->time)); $timetableFactModel->work_time = 12; $timetableFactModel->autoclosed = 1; - $timetableFactModel->comment = 'Закрыта автоматически'; + $timetableFactModel->comment = 'Закрыта автоматически ' . date('d-m-Y H-i-s'); $timetableFactModel->status = AdminCheckin::TYPE_END; $timetableFactModel->save();