修改已入库数量

This commit is contained in:
gongxh
2021-06-09 16:48:19 +08:00
parent d5541b366c
commit 5708b635eb
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ from InvPositionSum as a left join Inventory as b on a.cInvCode=b.cInvCode where
var sql = @" select * from (select stock.cInvCode MaterialCode,stock.Qty as StockQty ,arrival.arrivalQty,d.cInvName as MaterialName,d.cInvStd as MaterialSpecsModel from (select cInvCode,SUM( iQuantity) as Qty from CurrentStock
group by cInvCode ) as stock
left join
(select cInvCode,SUM(iQuantity)-SUM(fRealQuantity) as arrivalQty from PU_ArrivalVouchs a,PU_ArrivalVouch b
(select cInvCode,SUM(iQuantity)-SUM(fValidInQuan) as arrivalQty from PU_ArrivalVouchs a,PU_ArrivalVouch b
where a.ID=b.ID and isnull(b.cverifier,'')<>'' and bNegative=0
group by cInvCode) as arrival on stock.cInvCode=arrival.cInvCode
left join Inventory as d on stock.cInvCode=d.cInvCode