|
|
@ -8413,6 +8413,27 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
#region 成品入库
|
|
|
|
else if (TransType == TransTypeEnum.ManufactureReceive.GetDescription()) |
|
|
|
{ |
|
|
|
sql.Append($@"SELECT a.LotNo ,d.LocationCode, c.WHCode
|
|
|
|
FROM |
|
|
|
ICSInventoryLot a |
|
|
|
inner JOIN ICSInventoryLotDetail b ON a.WorkPoint= b.WorkPoint |
|
|
|
AND a.LotNo=b.LotNo |
|
|
|
inner Join ICSInventoryDetail d ON d.INVCode=a.InvCode |
|
|
|
AND d.WorkPoint=b.WorkPoint |
|
|
|
inner JOIN ICSManufactureReceive c ON c.RCVCode= b.TransCode |
|
|
|
AND c.WorkPoint= b.WorkPoint |
|
|
|
AND c.InvCode= a.INVCode |
|
|
|
AND c.Sequence= b.TransSequence |
|
|
|
AND c.WHCode=d.WHCode |
|
|
|
WHERE |
|
|
|
b.WorkPoint= '{JsonData.WorkPoint}' |
|
|
|
AND a.LotNo= '{JsonData.BarCode}'");
|
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|