浏览代码

添加由于打印多次 且是发货单出库的 造成u9扣除失败

lvhao 3 月之前
父节点
当前提交
81db4bd665
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      core/CoreApp/controllers/Systemfout.php

+ 20 - 0
core/CoreApp/controllers/Systemfout.php

@@ -999,6 +999,26 @@ class Systemfout extends Start_Controller {
 			$outnumber = $this->input->post('outnumber',true);
 			$outnumber = $this->input->post('outnumber',true);
 			$post = json_decode($post,true);
 			$post = json_decode($post,true);
 			$this->$fullorder_name->save($post,$outnumber);
 			$this->$fullorder_name->save($post,$outnumber);
+			
+			if($fullorder_name != 'fullorderxw'){
+				// if(($item['warehouse'] != 5) || ($item['warehouse'] != 7) || ($item['warehouse'] != 8) || ($item['warehouse'] != 9) ){
+				//     $this->zzquque_u9->insert($item);
+				// }
+				$y = $this->$fullorder_name->read($outnumber);
+				if( !in_array($y['type'],[5,7,8,9]) ){
+					$data = [
+						'platform'=>$fullorder_name,
+						'warehouse'=>$y['type'],
+						'type'=>($y['type'] == 5)?11:10,   //5代表美仓  
+						'order_no'=>$y['number'],
+						'status'=>0,
+						'create_time'=>time(),
+						'update_time'=>time(),
+					];
+					$this->zzquque_u9->insert($data);
+				}
+			}
+			
 		}
 		}
 	}
 	}
 	public function _fout_db($y,$warehouse,$bdck)//对比占单是否正确
 	public function _fout_db($y,$warehouse,$bdck)//对比占单是否正确