|
|
@@ -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');
|