問題現(xiàn)象:在用友U8V8.51erp軟件供應鏈管理的采購管理模塊中入庫單與發(fā)票之間進行單據(jù)聯(lián)查時發(fā)現(xiàn)錯誤 一、在入庫單中聯(lián)查的發(fā)票不是與該筆入庫單對應結算的發(fā)票。例:入庫單單號104 二、在入庫單主表的cbuscode字段下有發(fā)票號且此發(fā)票號與入庫能對應上,但聯(lián)查不到發(fā)票。例:入庫單號00000017號
原因分析:問題原因: 入庫單聯(lián)查發(fā)票是根據(jù)PurSettleVouchs.iRdsID字段上記錄的RdRecords.AutoID查詢的。 錯誤的原因是: 1)此字段上已經(jīng)結算的記錄為空; 2)此字段上記錄與RdRecords.AutoID上記錄不對應; 使用下面的語句可以測試出來: select * from PurBillVouchs INNER JOIN PurBillVouch on PurBillVouchs.PbVID=PurBillVouch.PbVID inner join PurSettleVouchs ON PurBillVouch.cPBVCode = PurSettleVouchs.cBillCode WHERE (PurBillVouchs.RdsIdPurSettleVouchs.iRdsID or PurBillVouchs.RdsId is null ) and (PurBillVouchs.dsdate is not null)
解決方案:在用友U8V8.51erp系統(tǒng)中將不對應的PurSettleVouchs.iRdsID修改成對應的RdRecords.AutoID??捎萌缦抡Z句修改,修改前做好備份工作: update PurBillVouchs set PurBillVouchs.RdsId=PurSettleVouchs.iRdsID FROM PurBillVouchs INNER JOIN PurBillVouch on PurBillVouchs.PbVID=PurBillVouch.PbVID inner join PurSettleVouchs ON PurBillVouch.cPBVCode = PurSettleVouchs.cBillCode WHERE (PurBillVouchs.RdsIdPurSettleVouchs.iRdsID or PurBillVouchs.RdsId is null ) and (PurBillVouchs.dsdate is not null)
本條用友U8ERP系統(tǒng)問題的解決方案來自用友財務軟件官網(wǎng)知識庫,原官方用友U8知識庫如下表所示,請參閱:
用友U8知識庫主體 | 用友U8知識庫明細 |
---|---|
對應版本 | 用友U8V8.51 |
對應產(chǎn)品線 | 用友U8ERP |
對應模塊 | 供應鏈-采購管理 |
問題現(xiàn)象 | 入庫單與發(fā)票之間進行單據(jù)聯(lián)查時發(fā)現(xiàn)錯誤 一、在入庫單中聯(lián)查的發(fā)票不是與該筆入庫單對應結算的發(fā)票。例:入庫單單號104 二、在入庫單主表的cbuscode字段下有發(fā)票號且此發(fā)票號與入庫能對應上,但聯(lián)查不到發(fā)票。例:入庫單號00000017號 |
問題原因 | 問題原因: 入庫單聯(lián)查發(fā)票是根據(jù)PurSettleVouchs.iRdsID字段上記錄的RdRecords.AutoID查詢的。 錯誤的原因是: 1)此字段上已經(jīng)結算的記錄為空; 2)此字段上記錄與RdRecords.AutoID上記錄不對應; 使用下面的語句可以測試出來: select * from PurBillVouchs INNER JOIN PurBillVouch on PurBillVouchs.PbVID=PurBillVouch.PbVID inner join PurSettleVouchs ON PurBillVouch.cPBVCode = PurSettleVouchs.cBillCode WHERE (PurBillVouchs.RdsIdPurSettleVouchs.iRdsID or PurBillVouchs.RdsId is null ) and (PurBillVouchs.dsdate is not null) |
解決方案 | 將不對應的PurSettleVouchs.iRdsID修改成對應的RdRecords.AutoID??捎萌缦抡Z句修改,修改前做好備份工作: update PurBillVouchs set PurBillVouchs.RdsId=PurSettleVouchs.iRdsID FROM PurBillVouchs INNER JOIN PurBillVouch on PurBillVouchs.PbVID=PurBillVouch.PbVID inner join PurSettleVouchs ON PurBillVouch.cPBVCode = PurSettleVouchs.cBillCode WHERE (PurBillVouchs.RdsIdPurSettleVouchs.iRdsID or PurBillVouchs.RdsId is null ) and (PurBillVouchs.dsdate is not null) |
提交時間 | 2015-11-26 |
上述用友U8知識庫的解決方案如果仍然未能解決您的問題,可以嘗試到用友暢捷通服務社區(qū)搜索一下:https://www.iyyrj.com/ask/,或者加入QQ群:208289440,密碼:iyyrj.com。