Browse Source

分批合批

master
lixh 3 years ago
parent
commit
f5f356b356
  1. 0
      ERP接口文档.docx
  2. 4
      ICSSoft.WMS.WebAPI/ICSSoft.Common/TransTypeEnum.cs
  3. 2
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs
  4. 2
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs
  5. 0
      WMS接口文档.docx

0
ERP接口文档.docx

4
ICSSoft.WMS.WebAPI/ICSSoft.Common/TransTypeEnum.cs

@ -176,6 +176,10 @@ namespace ICSSoft.Common
[DBValue("32")]
LOTSplitAfter,
[Description("合并")]
[DBValue("68")]
LOTMerge,
[Description("合并前")]
[DBValue("33")]
LOTMergeBefore,

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

@ -1048,7 +1048,7 @@ namespace ICSSoft.DataProject
#endregion
}
//分批
else if (TransType == TransTypeEnum.LOTSplit.GetDescription())
else if (TransType == TransTypeEnum.LOTSplit.GetDescription()|| TransType == TransTypeEnum.LOTMerge.GetDescription())
{
sql = @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}' AND a.Quantity>0)
BEGIN

2
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs

@ -534,7 +534,7 @@ namespace ICSSoft.DataProject
///更新目标条码库存
string sql = @"IF NOT EXISTS(SELECT a.LotNo FROM ICSInventoryLot a
INNER JOIN ICSInventoryLot b ON b.LotNo='{3}' AND a.InvCode=b.InvCode AND a.WorkPoint=b.WorkPoint
WHERE a.LotNo='{0}' AND a.WorkPoint='6000')
WHERE a.LotNo='{0}' AND a.WorkPoint='{1}')
BEGIN
RAISERROR('" + language.GetNameByCode("WMSAPIInfo170") + @"',16,1);
RETURN

0
WMS接口文档.docx

Loading…
Cancel
Save