瀏覽代碼

添加DZ001允许直接入库

lvhao 20 小時之前
父節點
當前提交
a63528ee45
共有 1 個文件被更改,包括 10 次插入5 次删除
  1. 10 5
      core/CoreApp/controllers/Whlabel.php

+ 10 - 5
core/CoreApp/controllers/Whlabel.php

@@ -5152,12 +5152,17 @@ class Whlabel extends Start_Controller
 						$details = $tmp_info['details'];
 					}
 				}else{
-					$tmp_info = $this->whlabel->find('warehouse = "' . $warehouse['id'] . '" and sku = "' . $sku . '" and details = "'.$details.'" ','*','id desc');
-					if(empty($tmp_info)){
-						$ed[] = array('msg'=>$sku . '-的库位' . $details . '不存在!');
-						$j++;
-						continue;
+					if($details == 'DZ001'){
+
+					}else{
+						$tmp_info = $this->whlabel->find('warehouse = "' . $warehouse['id'] . '" and sku = "' . $sku . '" and details = "'.$details.'" ','*','id desc');
+						if(empty($tmp_info)){
+							$ed[] = array('msg'=>$sku . '-的库位' . $details . '不存在!');
+							$j++;
+							continue;
+						}
 					}
+					
 				}
 				$post['sku'] = $d['sku'];
 				$post['shop'] = $d['shop'];