From 58d5b91f7d3311383c40dff195c962a1bb0f8286 Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 5 Jun 2024 09:41:19 +0300 Subject: [PATCH] =?utf8?q?ERP-5=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=B0=D1=82=D1=8C=20=D1=84=D0=B0=D0=BA=D1=82=D0=B8=D1=87?= =?utf8?q?=D0=B5=D1=81=D0=BA=D0=B8=D0=B9=20=D0=BF=D0=BB=D0=B0=D0=BD=20?= =?utf8?q?=D0=BF=D0=BE=20=D1=81=D0=BE=D1=82=D1=80=D1=83=D0=B4=D0=BD=D0=B8?= =?utf8?q?=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/timetable/StartShiftStepTwoAction.php | 2 +- erp24/records/TimetableFactModel.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/actions/timetable/StartShiftStepTwoAction.php b/erp24/actions/timetable/StartShiftStepTwoAction.php index 0a7d91eb..9716da08 100755 --- a/erp24/actions/timetable/StartShiftStepTwoAction.php +++ b/erp24/actions/timetable/StartShiftStepTwoAction.php @@ -110,7 +110,7 @@ class StartShiftStepTwoAction extends Action } $timetableFact = new TimetableFactModel(); - $timetableFact->setValues($model, $planSlots); + $timetableFact->setValues($model, $planSlots, $lastCheckin); if (!$model->date) { \Yii::warning('Не указана дата явки. Скорее всего отсутствуент связанный план. admin_id:' . $model->admin_id . ', plan_id:' . $model->plan_id . ', store_id:' . $model->store_id); diff --git a/erp24/records/TimetableFactModel.php b/erp24/records/TimetableFactModel.php index 4b14bdd0..582d2e14 100644 --- a/erp24/records/TimetableFactModel.php +++ b/erp24/records/TimetableFactModel.php @@ -41,7 +41,7 @@ class TimetableFactModel extends ActiveRecord { public static function tableName() { - return '{{%timetable_fact}}'; + return 'timetable_fact'; } public function rules() -- 2.39.5