1
This commit is contained in:
@@ -304,7 +304,8 @@ FROM MaterialAppVouch a
|
||||
MAS.invcode ProductCode,--产品编码,
|
||||
PDT.cInvName ProductName,--产品名称
|
||||
PDT.cInvStd ProductSpec,--产品规格
|
||||
POST.cPosName [Position]--库位
|
||||
POST.cPosName [Position],--库位
|
||||
Convert(decimal(18,2),currentstock.iQuantity) WhQty
|
||||
|
||||
FROM
|
||||
MaterialAppVouch MA
|
||||
@@ -347,6 +348,9 @@ FROM
|
||||
GROUP BY
|
||||
cinvcode
|
||||
) AS post ON INV.cinvcode = post.cinvcode
|
||||
left outer join (SELECT cinvcode, SUM(iquantity) iQuantity
|
||||
FROM InvPositionSum WITH (NOLOCK) where cPosCode not in ('00701','00801','09001') and cWhCode not in (4,5)
|
||||
GROUP BY cInvCode) CurrentStock on CurrentStock.cInvCode = INV.cInvCode
|
||||
WHERE MAS.iQuantity > ISNULL(MAS.foutquantity,0)
|
||||
";
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
|
||||
Reference in New Issue
Block a user