From: Alexander Smirnov Date: Fri, 4 Apr 2025 11:57:59 +0000 (+0300) Subject: [ERP-396] view=1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5e31d85ac5fced00413463e118f91bd9d53c1a9f;p=erp24_rep%2Fyii-erp24%2F.git [ERP-396] view=1 --- diff --git a/erp24/services/Product1cReplacementService.php b/erp24/services/Product1cReplacementService.php index 02090ef6..4c5a3cc2 100644 --- a/erp24/services/Product1cReplacementService.php +++ b/erp24/services/Product1cReplacementService.php @@ -17,7 +17,7 @@ class Product1cReplacementService { } public static function getGuidFromName($name) { - $product1c = Products1c::find()->where(['like', 'name', $name, false])->one(); + $product1c = Products1c::find()->where(['like', 'name', $name, false])->andWhere(['view' => 1])->one(); if ($product1c) { return $product1c->id; }