From e7511614a3289f0e9c2f39da0449bdf4a3998046 Mon Sep 17 00:00:00 2001 From: lilili Date: Tue, 25 Jul 2023 14:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BA=93=E4=BD=8D=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index efc9600..103ef95 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -1562,7 +1562,7 @@ WHERE AND a.WarehouseCode= (SELECT TOP 1 WHCode FROM ICSDeliveryNotice WHERE DNCode='{DNCode}' And Sequence='{Sequence}' ) AND a.InvCode= '{INVCode}' AND a.Quantity>0 - ORDER BY Quantity) + ORDER BY InDate DESC) PRINT(@locationCodeCurrent) IF @locationCodeCurrent is NULL BEGIN set @locationCodeCurrent=(SELECT @@ -1722,7 +1722,7 @@ WHERE AND a.WarehouseCode= '{whCode}' AND a.InvCode= '{invCode}' AND a.Quantity>0 - ORDER BY Quantity) + ORDER BY InDate DESC) PRINT(@locationCodeCurrent) IF @locationCodeCurrent is NULL BEGIN set @locationCodeCurrent=(SELECT @@ -2107,7 +2107,7 @@ WHERE AND a.WarehouseCode= '{whCode}' AND a.InvCode= '{invCode}' AND a.Quantity>0 - ORDER BY Quantity) + ORDER BY InDate DESC) PRINT(@locationCodeCurrent) IF @locationCodeCurrent is NULL BEGIN set @locationCodeCurrent=(SELECT @@ -2271,7 +2271,7 @@ WHERE AND a.WarehouseCode= (SELECT TOP 1 WHCode FROM ICSManufactureReceive WHERE RCVCode='{RCVCode}' And Sequence='{Sequence}' ) AND a.InvCode= (SELECT TOP 1 INVCode FROM ICSManufactureReceive WHERE RCVCode='{RCVCode}' And Sequence='{Sequence}') AND a.Quantity>0 - ORDER BY Quantity) + ORDER BY InDate DESC) PRINT(@locationCodeCurrent) IF @locationCodeCurrent is NULL BEGIN set @locationCodeCurrent=(SELECT