Browse Source

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

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

11
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(); SAPGetDocInfoZS.ZWMS_SK_WS_HEADResponse result = new SAPGetDocInfoZS.ZWMS_SK_WS_HEADResponse();
client.Timeout = 300000; client.Timeout = 300000;
result = client.CallZWMS_SK_WS_HEAD(DocInfo); result = client.CallZWMS_SK_WS_HEAD(DocInfo);
log.Info(JsonConvert.SerializeObject(result));
List<SAPGetDocInfoZS.ZWMS_SK_HEAD> HeadInfoList = new List<SAPGetDocInfoZS.ZWMS_SK_HEAD>(); List<SAPGetDocInfoZS.ZWMS_SK_HEAD> HeadInfoList = new List<SAPGetDocInfoZS.ZWMS_SK_HEAD>();
HeadInfoList.AddRange(result.Z_HEAD); HeadInfoList.AddRange(result.Z_HEAD);
List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM> ItemInfoList = new List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM>(); List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM> ItemInfoList = new List<SAPGetDocInfoZS.ZWEBSERVICE_ITEM>();
@ -837,7 +840,7 @@ namespace ICSSoft.FromERP
line.EATTRIBUTE = Info.LEIXING;//单据类型 line.EATTRIBUTE = Info.LEIXING;//单据类型
//售后领料 同步 客户名称和分页 //售后领料 同步 客户名称和分页
if (Info.LEIXING=="17")
if (Info.LEIXING == "17")
{ {
line.CustomerName = Info.TEST4; line.CustomerName = Info.TEST4;
line.Pagination = Info.TEST5; line.Pagination = Info.TEST5;
@ -1140,7 +1143,7 @@ namespace ICSSoft.FromERP
client.Timeout = 300000; client.Timeout = 300000;
client.CallZWMS_SK_WS_HEAD(DocInfo); client.CallZWMS_SK_WS_HEAD(DocInfo);
#endregion #endregion
log.Error(ex.ToString());
log.Error(ex.Message.ToString());
} }
} }
#endregion #endregion
@ -1817,7 +1820,7 @@ namespace ICSSoft.FromERP
line.MTIME = DateTime.Now; line.MTIME = DateTime.Now;
line.WorkPoint = Info.WERKS;//站点 line.WorkPoint = Info.WERKS;//站点
line.EATTRIBUTE1 = Item.WERKS_JS;//接收站点 line.EATTRIBUTE1 = Item.WERKS_JS;//接收站点
line.Memo=Item.BEIZHU2;//拣料条码
line.Memo = Item.BEIZHU2;//拣料条码
//单据类型 //单据类型
line.OrderType = Info.LEIXING; line.OrderType = Info.LEIXING;
@ -3130,7 +3133,7 @@ namespace ICSSoft.FromERP
} }
catch (Exception ex) 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 END
IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo= '{2}' AND a.WorkPoint= '{3}') IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo= '{2}' AND a.WorkPoint= '{3}')
BEGIN BEGIN
--退退 20240315 yangtianm
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo039"), "{2}") + @"', 16, 1); RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo039"), "{2}") + @"', 16, 1);
RETURN RETURN
END 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}', 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}'; 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) IF EXISTS(SELECT a.LotNo FROM ICSWareHouseLotInfo a WHERE a.LotNo='{0}' AND a.WorkPoint='{1}' AND Quantity<0)

Loading…
Cancel
Save