]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-396] view=1 origin/feature_smirnov_erp-396_excel_to_numenclatur_replacement
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 4 Apr 2025 11:57:59 +0000 (14:57 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 4 Apr 2025 11:57:59 +0000 (14:57 +0300)
erp24/services/Product1cReplacementService.php

index 02090ef69324b2dff49904dfd5f03d464b5d760a..4c5a3cc23bca31fb3b7196a930fcc4c4d6625e76 100644 (file)
@@ -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;
         }