From 0bddf51ee476bb6053ea9ac8fc5db31c1f1c7636 Mon Sep 17 00:00:00 2001 From: Juj <1005539536@qq.com> Date: Mon, 11 Dec 2023 17:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9F=A5=E8=AF=A2=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=E4=BF=A1=E6=81=AF=E6=97=B6=20=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=B8=A6-=E6=9D=A1=E7=A0=81=E7=9A=84=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index f128888..c4b58e5 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -2577,7 +2577,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu left join ICSInventoryLotDetail c on a.LotNo=c.LotNo and a.WorkPoint=c.WorkPoint left join ICSExtension f on a.ExtensionID=f.ID and a.WorkPoint=f.WorkPoint left join dbo.ICSBackflushBCLog d on d.TransCode=c.TransCode and d.TransSequence=c.TransSequence and f.BatchCode=d.BatchCode - where c.TransCode='{0}' and c.TransSequence='{1}' and a.WorkPoint='{2}' and isnull(d.ID,'')=''"; + where a.LotNo NOT LIKE '%-%' and c.TransCode='{0}' and c.TransSequence='{1}' and a.WorkPoint='{2}' and isnull(d.ID,'')=''"; sqlLotBC = string.Format(sqlLotBC, Code, Sequence, WorkPoint); DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd); if (dtLotBC.Rows.Count<=0) @@ -2627,7 +2627,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu string SqlBackflush = @"select a.LotNo,a.Quantity,c.BatchCode from dbo.ICSWareHouseLotInfo a left join dbo.ICSInventoryLot b on a.LotNo=b.LotNo and a.WorkPoint=b.WorkPoint left join dbo.ICSExtension c on b.ExtensionID=c.ID and a.WorkPoint=c.WorkPoint - where b.LotNo NOT LIKE '%-%' and a.InvCode='{0}' and a.WorkPoint='{1}' and a.WarehouseCode='{2}' and a.Quantity<>0 order by InDate asc"; + where a.InvCode='{0}' and a.WorkPoint='{1}' and a.WarehouseCode='{2}' and a.Quantity<>0 order by InDate asc"; SqlBackflush = string.Format(SqlBackflush, item["InvCode"].ToString(), WorkPoint, item["WHCode"].ToString()); DataTable DtBackflush = SqlCommandHelper.SQlReturnData(SqlBackflush, cmd);