From 2c013edae9d3bf65e74ec9ef63ba76d6b8edaa02 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 22 Aug 2024 14:54:09 +0300 Subject: [PATCH] =?utf8?q?[ERP-142]=20=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C?= =?utf8?q?=20=D1=83=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D1=8E=D1=82=D1=81?= =?utf8?q?=D1=8F=20=D0=BE=D1=82=D0=BF=D1=83=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 77c92506..ee005e07 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -690,7 +690,7 @@ class MotivationService $norma = 15; if ($timetableFactModel['admin_group_id'] != 45) { - $timetablePlan = Timetable::find()->select(['COUNT(*) as total'])->where(['store_id' => $store_id, 'admin_id' => $admin_id, 'tabel' => 0]) + $timetablePlan = Timetable::find()->select(['COUNT(*) as total'])->where(['store_id' => $store_id, 'admin_id' => $admin_id, 'tabel' => 0, 'slot_type_id' => Timetable::TIMESLOT_WORK]) ->andWhere(['between', 'date', $monthStart, $monthEnd])->asArray()->one(); $norma = $timetablePlan['total']; } -- 2.39.5