]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Фикс
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 20 Jun 2025 14:36:03 +0000 (17:36 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 20 Jun 2025 14:36:03 +0000 (17:36 +0300)
erp24/controllers/CategoryPlanController.php

index 7a5f7b5ce293fae241377620a12ecd9986ece58f..5195c97a2bcf1c2ab112bb33d19c6e8512fc867c 100644 (file)
@@ -73,7 +73,7 @@ class CategoryPlanController extends Controller {
             ->leftJoin('products_1c_nomenclature p1cn', 'p1cn.id = sp.product_id')
             ->where(['between', 's.date', $date_start, $date_end])
             ->andWhere(['order_id' => ['', '0']])
-            ->andWhere(['not in', 'p1c.category', ['', 'букет', 'сборка', 'сервис']])
+            ->andWhere(['not in', 'p1cn.category', ['', 'букет', 'сборка', 'сервис']])
             ->andWhere(['s.store_id' => $model->store_id])
             ->groupBy(['s.store_id', "TO_CHAR(s.date, 'YYYY-MM')", "p1cn.category"])
             ->orderBy(['month' => SORT_ASC, 'p1cn.category' => SORT_ASC])
@@ -111,7 +111,7 @@ class CategoryPlanController extends Controller {
             ->where(['between', 's.date', $date_start, $date_end])
             ->andWhere(['not in', 'order_id', ['', '0']])
             ->andWhere(['s.store_id' => $model->store_id])
-            ->andWhere(['not in', 'p1c.category', ['', 'букет', 'сборка', 'сервис']])
+            ->andWhere(['not in', 'p1cn.category', ['', 'букет', 'сборка', 'сервис']])
             ->groupBy(['s.store_id', "TO_CHAR(s.date, 'YYYY-MM')", "p1cn.category"])
             ->orderBy(['month' => SORT_ASC, 'p1cn.category' => SORT_ASC])
             ->asArray()
@@ -136,7 +136,7 @@ class CategoryPlanController extends Controller {
             ->leftJoin('products_1c_nomenclature p1cn', 'p1cn.id = wop.product_id')
             ->where(['between', 'wo.date', $date_start, $date_end])
             ->andWhere(['wo.type' => WriteOffsErp::WRITE_OFFS_TYPE_BRAK])
-            ->andWhere(['not in', 'p1c.category', ['', 'букет', 'сборка', 'сервис']])
+            ->andWhere(['not in', 'p1cn.category', ['', 'букет', 'сборка', 'сервис']])
             ->andWhere(['wo.store_id' => $store_id])
             ->groupBy(["month", 'p1cn.category'])
             ->asArray()->all();