shish 2 лет назад
Родитель
Сommit
005e2e6f3f
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      biz-ghs/order/classes/PurchaseOrderClass.php

+ 11 - 0
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -553,6 +553,17 @@ class PurchaseOrderClass extends BaseClass
         $totalItemPrice = 0;
         $totalWeight = 0;
 
+        $data['confirm'] = 1;
+        if (getenv('YII_ENV') == 'production') {
+            if (in_array($mainId, [23390])) {
+                $data['confirm'] = 0;
+            }
+        } else {
+            if (in_array($mainId, [644])) {
+                $data['confirm'] = 0;
+            }
+        }
+
         $productIds = array_column($ghsItemInfo, 'productId');
         $productIds = array_unique(array_filter($productIds));
         $productList = ProductClass::getByIds($productIds, null, 'id');