|
@ -1133,7 +1133,7 @@ f.Colspan,f.ProjectCode,f.BatchCode,f.Version,f.Brand,f.cFree1, |
|
|
end as IsNew, |
|
|
end as IsNew, |
|
|
case when max(k.TransCode) is null then '未占料' else '已占料' end as IsOccupy, |
|
|
case when max(k.TransCode) is null then '未占料' else '已占料' end as IsOccupy, |
|
|
case when sum(a.Quantity)=sum(a.TransferQuantity) then '已过帐' |
|
|
case when sum(a.Quantity)=sum(a.TransferQuantity) then '已过帐' |
|
|
when sum(a.Quantity)!=sum(a.TransferQuantity) and a.TransferQuantity>0 then '已配料' |
|
|
|
|
|
|
|
|
when sum(a.Quantity)!=sum(a.TransferQuantity) and sum(a.TransferQuantity)>0 then '已配料' |
|
|
else '未配料' END AS Status, |
|
|
else '未配料' END AS Status, |
|
|
f.Colspan,f.ProjectCode,f.BatchCode,f.Version,f.Brand,f.cFree1, |
|
|
f.Colspan,f.ProjectCode,f.BatchCode,f.Version,f.Brand,f.cFree1, |
|
|
f.cFree2,f.cFree3,f.cFree4,f.cFree5,f.cFree6,f.cFree7,f.cFree8,f.cFree9,f.cFree10 |
|
|
f.cFree2,f.cFree3,f.cFree4,f.cFree5,f.cFree6,f.cFree7,f.cFree8,f.cFree9,f.cFree10 |
|
|