]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Регион в ценах
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 17 Apr 2025 06:53:11 +0000 (09:53 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 17 Apr 2025 06:53:11 +0000 (09:53 +0300)
erp24/services/StorePlanService.php

index 4a4c9fb0d9afd094c65a965dfe0fe4ce95f077fe..d7e3e4111f58ce3c1f36cc3c062d48419c858391 100755 (executable)
@@ -867,7 +867,7 @@ class StorePlanService
                 PricesDynamic::find()
                     ->where(['product_id' => $productGuids])
                     ->andWhere(['active' => 1])
-                    ->andWhere(['region_id' => $storesParams[$storeForecast["type_sales_id"]]])
+                    ->andWhere(['region_id' => $storesParams[$storeForecast["type_sales_id"]] ?? 52])
                     ->select(['price', 'product_id'])
                     ->asArray()
                     ->all(),