From 879d51055d43c643aedc7157595cdec22e83beaf Mon Sep 17 00:00:00 2001 From: Juj <1005539536@qq.com> Date: Mon, 4 Dec 2023 13:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B1=E6=80=9D=E5=BC=80=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E6=97=B6=E6=8E=92=E9=99=A4=E5=88=86=E6=89=B9=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E5=8F=8A=E5=BD=A2=E6=80=81=E8=BD=AC=E6=8D=A2=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E6=9D=A1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index 1b84d5a..f128888 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -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 a.InvCode='{0}' and a.WorkPoint='{1}' and a.WarehouseCode='{2}' and a.Quantity<>0 order by InDate asc"; + 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"; SqlBackflush = string.Format(SqlBackflush, item["InvCode"].ToString(), WorkPoint, item["WHCode"].ToString()); DataTable DtBackflush = SqlCommandHelper.SQlReturnData(SqlBackflush, cmd);