From: Alexander Smirnov Date: Wed, 9 Oct 2024 12:28:09 +0000 (+0300) Subject: Убрано лишнее и комментарии X-Git-Tag: 1.6~41^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=16c1c1a5e4d512dce2aecc3299140ec431f9bc70;p=erp24_rep%2Fyii-erp24%2F.git Убрано лишнее и комментарии --- 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");