From: fomichev Date: Wed, 9 Apr 2025 07:17:42 +0000 (+0300) Subject: Вычисление средней цены X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=48a706294ebac78871b92f8aadc43fce58f086ad;p=erp24_rep%2Fyii-erp24%2F.git Вычисление средней цены --- diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index b1ed5cbe..75b7fd2f 100755 --- a/erp24/services/StorePlanService.php +++ b/erp24/services/StorePlanService.php @@ -472,7 +472,9 @@ class StorePlanService } else { $region = null; } - $priceRecords->andWhere(['or',['region_id' => $region],['region_id' => null]])->all(); + $priceRecords + //->andWhere(['or',['region_id' => $region],['region_id' => null]]) + ->all(); if (!empty($priceRecords)) {