]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Перевод личного кабинета на новый факт смены
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 9 Jul 2024 14:53:17 +0000 (17:53 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 9 Jul 2024 14:53:17 +0000 (17:53 +0300)
erp24/services/CabinetService.php

index a38a7484437698962d58fee851fc51464923c3a9..c8e21ddc8918e5d5b0e0c9344484269946b751bc 100755 (executable)
@@ -2617,10 +2617,12 @@ class CabinetService
         $partTimeWagesCountAdminAnotherStore = 0;
 
         if (!empty($timetableAnotherStore)) {
-            $timetableAdminAnotherStoreValues = $this->getTimetableDate($timetableAnotherStore, $employeeId, $adminGuid, $anotherStoreAdminsGuids, $dateFrom, $dateTo, $normalCostShift, $isAdministrator);
-            $timetableAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'timetable');
-            $partTimeWagesSumAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'partTimeWagesSum');
-            $partTimeWagesCountAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'partTimeWagesCount');
+            if (!empty($anotherStoreAdminsGuids)) {
+                $timetableAdminAnotherStoreValues = $this->getTimetableDate($timetableAnotherStore, $employeeId, $adminGuid, $anotherStoreAdminsGuids, $dateFrom, $dateTo, $normalCostShift, $isAdministrator);
+                $timetableAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'timetable');
+                $partTimeWagesSumAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'partTimeWagesSum');
+                $partTimeWagesCountAdminAnotherStore = ArrayHelper::getValue($timetableAdminAnotherStoreValues, 'partTimeWagesCount');
+            }
         }
 
         $partTimeWagesSumAdminAllStore = $partTimeWagesSumAdminStore + $partTimeWagesSumAdminAnotherStore;