Browse Source

调整拣料推荐条码接口

master
lilili 2 years ago
parent
commit
aadf0c1ea7
  1. 10
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

10
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -816,8 +816,8 @@ c.InvUnit,
FLOOR(c.iQuantity) AS iQuantity,
d.WarehouseCode,
d.LocationCode,
d.LotNO,
FLOOR(ISNULL(d.Quantity, 0)) AS QTY,
m.LotNO,
(case when m.LotNo is null then 0 else FLOOR(ISNULL(d.Quantity, 0)) end) AS QTY,
CONVERT(varchar(100),d.MTIME, 23) MTIME,
FLOOR(f.QTYTotal) QTYTotal INTO #temp
FROM
@ -830,6 +830,7 @@ c.InvUnit,
DECLARE @ItemCode VARCHAR(50),
@QTY DECIMAL(18,3),
@ItemCodeCurrent VARCHAR(50),
@Lotno VARCHAR(50),
@QTYCurrent DECIMAL(18,3),
@iQuantityCurrent DECIMAL(18,3),
@CanDelete BIT,
@ -839,10 +840,11 @@ SET @Row = @@rowcount
SET @rowCurrent=1
SET @CanDelete=0
SET @ItemCode=''
SET @Lotno = ''
WHILE @rowCurrent<=@Row
BEGIN
SELECT @ItemCodeCurrent=InvCode,@QTYCurrent=QTY,@iQuantityCurrent=iQuantity FROM #temp WHERE rowNo=@rowCurrent
SELECT @ItemCodeCurrent=InvCode,@QTYCurrent=QTY,@iQuantityCurrent=iQuantity,@Lotno = Lotno FROM #temp WHERE rowNo=@rowCurrent
PRINT(@rowCurrent)
IF @ItemCode<>@ItemCodeCurrent
@ -860,7 +862,7 @@ PRINT(@rowCurrent)
END
SET @QTY += @QTYCurrent
IF @QTY>=@iQuantityCurrent
IF @LotNo is null or @QTY>=@iQuantityCurrent
BEGIN
SET @CanDelete=1
END

Loading…
Cancel
Save