亚洲精品久久AV无码蜜桃第1集,年轻漂亮的人妻被公侵犯bd免费版,一本无码AV中文出轨人妻,久久人人爽人人爽人人片AV麻烦

生產(chǎn)加工單累計(jì)出庫(kù)數(shù)不對(duì)

2018/4/11 23:31:51山東用友

產(chǎn)品版本: 302-用友T3-用友通標(biāo)準(zhǔn)版 適用產(chǎn)品: T3系列
產(chǎn)品模塊: 18-庫(kù)存管理 提交時(shí)間: 2012-06-12
問(wèn)題現(xiàn)象:

生產(chǎn)加工單0000000002單據(jù),為什么累計(jì)出庫(kù)數(shù)量不對(duì)呢?
   分多次領(lǐng)料的,領(lǐng)料審核后,累計(jì)出庫(kù)數(shù)量不對(duì)。
經(jīng)核對(duì),發(fā)現(xiàn)3號(hào)生產(chǎn)加工單存貨編碼為450901,累計(jì)出庫(kù)是36,但是材料出庫(kù)單是28.

原因分析:

執(zhí)行以下腳本

解決方案:

執(zhí)行以下腳本,改下生產(chǎn)加工單號(hào)

declare @sumiquantity int
declare @ccinvcode char(60)
declare @key char(60)

DECLARE tables_CURSOR CURSOR FOR
select cinvcode,sum(iquantity) from rdrecords where id in (select id from rdrecord where cbustype='生產(chǎn)加工' and cbuscode='0000000002' )
group by cinvcode

OPEN tables_cursor

FETCH NEXT FROM tables_cursor into @ccinvcode,@sumiquantity

WHILE @@FETCH_STATUS = 0
BEGIN
 
 
 
  update MatchVouchs
  set iSumActiQuantity=@sumiquantity
  where cInvCode=@ccinvcode and  cVouchCode='0000000002'


FETCH NEXT FROM tables_cursor into @ccinvcode,@sumiquantity

END

CLOSE tables_cursor
DEALLOCATE tables_cursor
GO

  • 設(shè)為首頁(yè)
  • 濟(jì)南用友|
  • 用友暢捷通軟件山東濟(jì)南銷(xiāo)售服務(wù)中心|
  • 聯(lián)系我們|
  • 魯ICP備2021016587號(hào)-3
  • Copyright © 2021 山東一友信息科技有限公司