From: fomichev Date: Mon, 19 May 2025 13:07:07 +0000 (+0300) Subject: Кеширование и вынос цены из цикла X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=36586c89237b3355aa8776746a46bffd991334c1;p=erp24_rep%2Fyii-erp24%2F.git Кеширование и вынос цены из цикла --- diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index bea2bb5d..5ce67ab9 100755 --- a/erp24/services/StorePlanService.php +++ b/erp24/services/StorePlanService.php @@ -994,8 +994,7 @@ class StorePlanService $productComponentGuids = array_column($products, 'product_guid'); - $pricesData = - PricesDynamic::find() + $pricesData = PricesDynamic::find() ->select(['price', 'product_id', 'region_id']) ->where(['product_id' => $productComponentGuids]) ->andWhere(['active' => 1])