Browse Source

生产退料禁止原条码退回

master
yangtm 10 months ago
parent
commit
ed5e624be8
  1. 11
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

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

@ -1937,9 +1937,18 @@ namespace ICSSoft.DataProject
BEGIN
RAISERROR('" + string.Format(language.GetNameByCode(msglanguage), "{2}") + @"',16,1);
RETURN
END
END
IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo= '{2}' AND a.WorkPoint= '{3}')
BEGIN
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo039"), "{2}") + @"', 16, 1);
RETURN
END
" + sql;
columns = @"SUM(log.Quantity) AS Quantity,
SUM(log.Quantity*(lot.Amount/lot.Quantity)) AS Amount,
a.WarehouseCode AS WHCode,

Loading…
Cancel
Save