问题现象:在用友U8V8.51erp软件供应链管理的采购管理模块中入库单与发票之间进行单据联查时发现错误 一、在入库单中联查的发票不是与该笔入库单对应结算的发票。例:入库单单号104 二、在入库单主表的cbuscode字段下有发票号且此发票号与入库能对应上,但联查不到发票。例:入库单号00000017号

原因分析:问题原因: 入库单联查发票是根据PurSettleVouchs.iRdsID字段上记录的RdRecords.AutoID查询的。 错误的原因是: 1)此字段上已经结算的记录为空; 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系统中将不对应的PurSettleVouchs.iRdsID修改成对应的RdRecords.AutoID。可用如下语句修改,修改前做好备份工作: 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系统问题的解决方案来自用友财务软件官网知识库,原官方用友U8知识库如下表所示,请参阅:

用友U8知识库主体 用友U8知识库明细
对应版本 用友U8V8.51
对应产品线 用友U8ERP
对应模块 供应链-采购管理
问题现象 入库单与发票之间进行单据联查时发现错误 一、在入库单中联查的发票不是与该笔入库单对应结算的发票。例:入库单单号104 二、在入库单主表的cbuscode字段下有发票号且此发票号与入库能对应上,但联查不到发票。例:入库单号00000017号
问题原因 问题原因: 入库单联查发票是根据PurSettleVouchs.iRdsID字段上记录的RdRecords.AutoID查询的。 错误的原因是: 1)此字段上已经结算的记录为空; 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。可用如下语句修改,修改前做好备份工作: 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知识库的解决方案如果仍然未能解决您的问题,可以尝试到用友畅捷通服务社区搜索一下:https://www.iyyrj.com/ask/,或者加入QQ群:208289440,密码:iyyrj.com。