|
|
@ -1940,9 +1940,13 @@ namespace ICSSoft.DataProject |
|
|
|
RAISERROR('" + language.GetNameByCode("WMSAPIInfo171") + @"',16,1); |
|
|
|
RETURN |
|
|
|
END |
|
|
|
UPDATE ICSWareHouseLotInfo SET Quantity=ISNULL(Quantity,0)+'{2}' WHERE LotNo='{0}' AND WorkPoint='{1}' |
|
|
|
|
|
|
|
UPDATE ICSWareHouseLotInfo SET Quantity=ISNULL(Quantity,0)+'{2}' |
|
|
|
,MTIME=(SELECT MIN(MTIME) FROM ICSWareHouseLotInfo WHERE LotNo IN('{4}'))--如果两个条码合并,入库时间应该变成两个里面入库时间最早的那个条码 20240403 yangtm |
|
|
|
,InDate=(SELECT MIN(MTIME) FROM ICSWareHouseLotInfo WHERE LotNo IN('{4}')) |
|
|
|
WHERE LotNo='{0}' AND WorkPoint='{1}' |
|
|
|
";
|
|
|
|
sql = string.Format(sql, LotNo, WorkPoint, Quantity, CurrentLotNo); |
|
|
|
sql = string.Format(sql, LotNo, WorkPoint, Quantity, CurrentLotNo, LotNo+ "','" + CurrentLotNo); |
|
|
|
|
|
|
|
if (!DBHelper.ExecuteNonQuery(sql, cmd)) |
|
|
|
{ |
|
|
|