|
|
@ -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, |
|
|
|