From d3a2ecee8de627e7916e44c4e42ccdce488f2002 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Tue, 9 Jul 2024 17:53:17 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=20?= =?utf8?q?=D0=BB=D0=B8=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=B0=D0=B1?= =?utf8?q?=D0=B8=D0=BD=D0=B5=D1=82=D0=B0=20=D0=BD=D0=B0=20=D0=BD=D0=BE?= =?utf8?q?=D0=B2=D1=8B=D0=B9=20=D1=84=D0=B0=D0=BA=D1=82=20=D1=81=D0=BC?= =?utf8?q?=D0=B5=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/CabinetService.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/erp24/services/CabinetService.php b/erp24/services/CabinetService.php index a38a7484..c8e21ddc 100755 --- a/erp24/services/CabinetService.php +++ b/erp24/services/CabinetService.php @@ -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; -- 2.39.5