Browse Source

新增成品入库区域验证

master
lilili 9 months ago
parent
commit
c4c16034d9
  1. 21
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

21
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

@ -8413,6 +8413,27 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer
}
#endregion
#region 成品入库
else if (TransType == TransTypeEnum.ManufactureReceive.GetDescription())
{
sql.Append($@"SELECT a.LotNo ,d.LocationCode, c.WHCode
FROM
ICSInventoryLot a
inner JOIN ICSInventoryLotDetail b ON a.WorkPoint= b.WorkPoint
AND a.LotNo=b.LotNo
inner Join ICSInventoryDetail d ON d.INVCode=a.InvCode
AND d.WorkPoint=b.WorkPoint
inner JOIN ICSManufactureReceive c ON c.RCVCode= b.TransCode
AND c.WorkPoint= b.WorkPoint
AND c.InvCode= a.INVCode
AND c.Sequence= b.TransSequence
AND c.WHCode=d.WHCode
WHERE
b.WorkPoint= '{JsonData.WorkPoint}'
AND a.LotNo= '{JsonData.BarCode}'");
}
#endregion
}
else
{

Loading…
Cancel
Save