]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-225 Не правильно считается Прогноз за месяц
authormarina <m.zozirova@gmail.com>
Wed, 16 Oct 2024 09:42:29 +0000 (12:42 +0300)
committermarina <m.zozirova@gmail.com>
Wed, 16 Oct 2024 09:42:29 +0000 (12:42 +0300)
erp24/scripts/tasks/task_33_insert_data_to_monitvation_from_motivation_buh.php

index f0b4155b30159d14497a97a3e808f1d0c3aabf33..34c3d4e2aebe02401165cc7aa62c07529e8b9b1a 100644 (file)
@@ -187,7 +187,7 @@ try {
                 }
 
 
-                if ($motivationValue->value === MotivationCostsItem::findOne(['code' => 10])->id) {
+                if ($motivationValue->value_id === MotivationCostsItem::findOne(['code' => 10])->id) {
                         $summa = [];
 
                         if ($motivationValue->motivation_group_id <= 5 && $motivationValue->motivation_group_id >= 1) {
@@ -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' => 'Расходные материалы (обеспечение продаж)'])