|
|
@ -1772,7 +1772,7 @@ where a.DNType='3' and a.Status='2' and a.EATTRIBUTE1 is NOT null |
|
|
|
from ICSMOApplyNegDetail a |
|
|
|
left join ICSMOApplyNeg d on a.ApplyNegCode=d.ApplyNegCode and a.WorkPoint=d.WorkPoint |
|
|
|
left join ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint |
|
|
|
LEFT JOIN ICSInventoryDetail detail WHERE b.InvCode=detail.INVCode AND a.WHCode=detail.WHCode AND a.WorkPoint=detail.WorkPoint |
|
|
|
LEFT JOIN ICSInventoryDetail detail ON b.InvCode=detail.INVCode AND a.WHCode=detail.WHCode AND a.WorkPoint=detail.WorkPoint |
|
|
|
left join ( |
|
|
|
select mm.TransCode,mm.TransSequence,sum(isnull(ee.Quantity,0)) LOTQTY,ee.WorkPoint from ICSInventoryLot ee |
|
|
|
left join ICSInventoryLotDetail mm on ee.LotNo=mm.LotNo and ee.type='12' |
|
|
|