From cc983ebbf21500c9e96778a400da484fd0274c3c Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期四, 21 七月 2022 13:45:34 +0800
Subject: [PATCH] 新增直接调拨单校验-是否校对仓库仓位、生产领料单校验-是否校对仓库仓位参数

---
 WebAPI/Controllers/POStockInBillController.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/WebAPI/Controllers/POStockInBillController.cs b/WebAPI/Controllers/POStockInBillController.cs
index 1d55230..e180af3 100644
--- a/WebAPI/Controllers/POStockInBillController.cs
+++ b/WebAPI/Controllers/POStockInBillController.cs
@@ -1232,13 +1232,13 @@
         //PDA閿�鍞嚭搴撴暣鎵樺垹闄�
         [Route("POStockInBillList/SellOutBillSDeleCode")]
         [HttpGet]
-        public object SellOutBillSDeleCode(string HBarCode)
+        public object SellOutBillSDeleCode(string HBarCode,string HInterID)
         {
             try
             {
                 //鏍规嵁鏉$爜鍦ㄦ潯鐮佹。妗堜腑鎵惧埌瀵瑰簲鐨勬墭鏉$爜锛屽啀鍦ㄤ复鏃惰〃涓垹闄よ鎵樻潯鐮佺殑鍏ㄩ儴璁板綍
-                string sql = string.Format(@"delete from KF_PonderationBillMain_Temp where HBillType=1205 and 
-                    HBarCode_Pack=(select HBarcodeNo from Gy_BarCodeBill where HBarCode='"+ HBarCode + "')");
+                string sql = string.Format(@"delete from KF_PonderationBillMain_Temp where HBillType=1205 and HInterID=" + HInterID + " and HBarCode" +
+                    " in (select HBarCode from Gy_BarCodeBill where HBarCode_Pack = (select HBarCode_Pack from Gy_BarCodeBill where HBarCode = '"+ HBarCode + "'))");
                 oCn.RunProc(sql);
                 
                 objJsonResult.code = "1";

--
Gitblit v1.9.1