This commit is contained in:
杰 朱
2021-08-30 13:47:51 +08:00
parent fa4e59257d
commit 8e158fae5a
4 changed files with 15 additions and 3 deletions

View File

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