]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Кеширование и вынос цены из цикла
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 19 May 2025 13:07:07 +0000 (16:07 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 19 May 2025 13:07:07 +0000 (16:07 +0300)
erp24/services/StorePlanService.php

index bea2bb5d41f104609a8c8dea4a58bdd53d23b4a1..5ce67ab9f195721fef6d460a69bb89fac99c37af 100755 (executable)
@@ -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])