From: marina Date: Wed, 16 Oct 2024 09:26:03 +0000 (+0300) Subject: ERP-225 Не правильно считается Прогноз за месяц X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=12d14b8a8ada61c2a7ed993e8fda6134dd7a52d4;p=erp24_rep%2Fyii-erp24%2F.git ERP-225 Не правильно считается Прогноз за месяц --- diff --git a/erp24/scripts/tasks/task_33_insert_data_to_monitvation_from_motivation_buh.php b/erp24/scripts/tasks/task_33_insert_data_to_monitvation_from_motivation_buh.php index fae62877..f0b4155b 100644 --- a/erp24/scripts/tasks/task_33_insert_data_to_monitvation_from_motivation_buh.php +++ b/erp24/scripts/tasks/task_33_insert_data_to_monitvation_from_motivation_buh.php @@ -95,7 +95,7 @@ try { $monthValue = 8; $yearValue = 2024; - + $month = MotivationBuh::find() ->select('id') ->andWhere(['month' => $monthValue]) @@ -208,7 +208,7 @@ try { ->orderBy('id desc') ->asArray() ->all(), 'id', 'store_guid'); - +var_dump($stores);die(); if (!empty(array_key_exists($motivation->store_id,$stores))) { $writeOffs = WriteOffs::find() ->andWhere(['type' => 'Расходные материалы (обеспечение продаж)'])