From: fomichev Date: Thu, 17 Apr 2025 06:53:11 +0000 (+0300) Subject: Регион в ценах X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b3c79ca62fbbb76e56941ed25378cd98ef86946b;p=erp24_rep%2Fyii-erp24%2F.git Регион в ценах --- diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index 4a4c9fb0..d7e3e411 100755 --- a/erp24/services/StorePlanService.php +++ b/erp24/services/StorePlanService.php @@ -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(),