From 16c1c1a5e4d512dce2aecc3299140ec431f9bc70 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 9 Oct 2024 15:28:09 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20=D0=BB?= =?utf8?q?=D0=B8=D1=88=D0=BD=D0=B5=D0=B5=20=D0=B8=20=D0=BA=D0=BE=D0=BC?= =?utf8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Timetable.php | 5 ----- ...22_create_employee_for_1c_with_admins_with_empty_guid.php | 3 --- 2 files changed, 8 deletions(-) diff --git a/erp24/records/Timetable.php b/erp24/records/Timetable.php index 1b81660f..e3ba83c8 100755 --- a/erp24/records/Timetable.php +++ b/erp24/records/Timetable.php @@ -73,11 +73,6 @@ class Timetable extends ActiveRecord return [1700, 2000, 2500]; } - public static function getFirstValueSalariesDay() { - $salaryShiftArray = self::getSalariesDay(); - return $salaryShiftArray[array_key_first($salaryShiftArray)]; - } - public function getSalaryShift($timetableId) : array { //TODO ERROR $adminGuid diff --git a/erp24/scripts/tasks/task_22_create_employee_for_1c_with_admins_with_empty_guid.php b/erp24/scripts/tasks/task_22_create_employee_for_1c_with_admins_with_empty_guid.php index 2b125e51..9aa1e849 100644 --- a/erp24/scripts/tasks/task_22_create_employee_for_1c_with_admins_with_empty_guid.php +++ b/erp24/scripts/tasks/task_22_create_employee_for_1c_with_admins_with_empty_guid.php @@ -98,8 +98,6 @@ try { } } -// $salaryShift = Timetable::getFirstValueSalariesDay(); - $model = new EmployeeOnShift([ 'first_name' => $admin->name, 'last_name' => '', 'phone' => $admin->phone, 'shift_date' => date('Y-m-d H:i:s'), 'shift_type' => 1, @@ -108,7 +106,6 @@ try { 'created_by' => 1, 'store_id' => $storeGuid, 'price' => 0, -// 'salary_shift' => $salaryShift, ]); $model->guid = DataHelper::createGuidMy("06"); $model->created_at = date("Y-m-d H:i:s"); -- 2.39.5