From: marina Date: Wed, 16 Oct 2024 12:55:32 +0000 (+0300) Subject: ERP-225 Не правильно считается Прогноз за месяц X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5f22dd0b80492078fc2f98422738934135be705c;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 cd54869d..98fc7f9f 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 @@ -191,7 +191,7 @@ try { if ($motivationValue->motivation_group_id <= 5 && $motivationValue->motivation_group_id >= 1) { - $period = Motivation::getWeekRange(null, $motivationValue->motivation_group_id); + $period = Motivation::getWeekRange(null, $motivationValue->motivation_group_id, $monthValue, $yearValue); } else if ($motivationValue->motivation_group_id == 10) { $period = array( 'start_time' => "$motivation->year-$motivation->month-01 00:00:00",