From 917714f8f4c6f3a36607857cb353412c52d6aabd Mon Sep 17 00:00:00 2001 From: lilili Date: Wed, 9 Aug 2023 13:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8B=A3=E6=96=99=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E2=80=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/PickMaterialApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs index 37e9c03..3536cae 100644 --- a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs +++ b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs @@ -1704,7 +1704,7 @@ left join (select distinct TransCode,TransType,WorkPoint from dbo.ICSWareHouseLo RAISERROR('条码{lotNo}和单据{transCode}行{tableModel.Rows[i]["SAPSequence"]}仓库不一致',16,1); RETURN END; - IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{lotNo}' AND a.WorkPoint='{WorkPoint}' AND a.WarehouseCode='{whCode}' AND a.Quantity>A.LockQuantity+'{tableModel.Rows[i]["Quantity"]}') + IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{lotNo}' AND a.WorkPoint='{WorkPoint}' AND a.WarehouseCode='{whCode}' AND a.Quantity>=A.LockQuantity+'{tableModel.Rows[i]["Quantity"]}') BEGIN RAISERROR('条码{lotNo}的库存可分配数量小于单据数量',16,1); RETURN @@ -2065,7 +2065,7 @@ left join (select distinct TransCode,TransType,WorkPoint from dbo.ICSWareHouseLo } foreach (DataRow PickLog in table.Rows) { - pikTbLogsql += @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{9}' AND a.WorkPoint='{8}' AND a.Quantity>A.LockQuantity+'{3}') + pikTbLogsql += @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{9}' AND a.WorkPoint='{8}' AND a.Quantity>=A.LockQuantity+'{3}') BEGIN RAISERROR('条码{9}的库存可分配数量小于单据数量', 16, 1);