Browse Source

调拨分批后原条码时间不变

master
yangtm 11 months ago
parent
commit
8df08c1fe8
  1. 7
      ICSSoft.FromERP/ICSSoft.FromERP/ICSSAPDocGet.cs
  2. 2
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs
  3. 3
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs

7
ICSSoft.FromERP/ICSSoft.FromERP/ICSSAPDocGet.cs

@ -82,6 +82,9 @@ namespace ICSSoft.FromERP
SAPGetDocInfoZS.ZWMS_SK_WS_HEADResponse result = new SAPGetDocInfoZS.ZWMS_SK_WS_HEADResponse();
client.Timeout = 300000;
result = client.CallZWMS_SK_WS_HEAD(DocInfo);
log.Info(JsonConvert.SerializeObject(result));
List<SAPGetDocInfoZS.ZWMS_SK_HEAD> HeadInfoList = new List<SAPGetDocInfoZS.ZWMS_SK_HEAD>();
HeadInfoList.AddRange(result.Z_HEAD);
List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM> ItemInfoList = new List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM>();
@ -1140,7 +1143,7 @@ namespace ICSSoft.FromERP
client.Timeout = 300000;
client.CallZWMS_SK_WS_HEAD(DocInfo);
#endregion
log.Error(ex.ToString());
log.Error(ex.Message.ToString());
}
}
#endregion
@ -3130,7 +3133,7 @@ namespace ICSSoft.FromERP
}
catch (Exception ex)
{
log.Error(ex.ToString());
log.Error(ex.Message.ToString());
}
}
}

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

@ -1940,7 +1940,7 @@ namespace ICSSoft.DataProject
END
IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo= '{2}' AND a.WorkPoint= '{3}')
BEGIN
--退退 20240315 yangtianm
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo039"), "{2}") + @"', 16, 1);
RETURN
END

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

@ -1468,7 +1468,8 @@ namespace ICSSoft.DataProject
}
///更新库存
sql = @"UPDATE ICSWareHouseLotInfo SET Quantity=ISNULL(Quantity,0)-'{2}',--LocationCode = '{3}',
WorkPoint ='{4}',MTIME='{5}',InDate='{5}' WHERE LotNo='{0}' AND WorkPoint='{1}';
WorkPoint ='{4}'--,MTIME='{5}',InDate='{5}' -- 20240320 yangtianm
WHERE LotNo='{0}' AND WorkPoint='{1}';
UPDATE ICSInventoryLot SET WorkPoint='{4}' WHERE LotNo='{0}' AND WorkPoint='{1}';
IF EXISTS(SELECT a.LotNo FROM ICSWareHouseLotInfo a WHERE a.LotNo='{0}' AND a.WorkPoint='{1}' AND Quantity<0)

Loading…
Cancel
Save