From 8dda8ee5ac5c89380d864520396f25c95385de82 Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Sat, 6 Jun 2026 00:30:22 +0900 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20=D1=80=D0=B0=D1=81=D1=87?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=20=D0=BF=D0=BB=D0=B0=D0=BD=D0=B0=20=D0=B7?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B8=D0=B9=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=81=D1=8F=D1=86=20#3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/MetricCalculators/PlanCalculator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/MetricCalculators/PlanCalculator.php b/app/Services/MetricCalculators/PlanCalculator.php index 080c2b0..bebe38e 100644 --- a/app/Services/MetricCalculators/PlanCalculator.php +++ b/app/Services/MetricCalculators/PlanCalculator.php @@ -49,7 +49,7 @@ class PlanCalculator extends BaseMetricService implements MetricCalculatorInterf ->join('duty_report_metric_results as mr', 'r.id', '=', 'mr.rf_report_id') ->whereIn('r.rf_department_id', $departmentIds) ->where('mr.rf_metrika_item_id', self::getMetricId()) - ->where('r.period_end', '>=', $startCurrentMonth) // Используем >= + ->where('r.period_end', '>', $startCurrentMonth) // Используем >= ->where('r.period_end', '<=', $endDate) ->select('r.rf_department_id', DB::raw('SUM(CAST(mr.value AS DECIMAL)) as total')) ->groupBy('r.rf_department_id')