问题现象:在用友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)
以上用友U8软件问题解决方案来自用友软件官网知识库,原用友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.yongyou8.com/ask/。
转载声明:本站发布文章及版权归原作者所有,转载本站文章请注明文章来源!
网友评论