用友财务软件互动问答平台

 找回密码
 立即注册
查看: 592|回复: 1

用友U8.51软件中查询应收业务明细帐带科目查询出现不少的核销记录,导致与不带科目查询出的结果不平?

[复制链接]
发表于 2016-9-25 15:37:19 | 显示全部楼层 |阅读模式
问题现象:在用友8.51erp系统中用友U8版本号:U8.51软件的财务系统产品线应收模块出现如下问题:821升级到用友U851ERP系统后在应收系统查询应收业务明细帐带科目查询出现不少的核销记录,导致与不带科目查询出的结果不平。请帮忙解答!
原因分析:经检查发现ap_detail表中存在有收款记录与核销记录的ccode为空的情况,将其修改为正确的科目即可。执行该语句前请作好数据备份!!!。
解决方案:在用友erp 系统版本U8.51软件中ifexists(select*fromsysobjectswherename='aa')droptableaaifexists(select*fromsysobjectswherename='bb')droptablebbifexists(select*fromsysobjectswherename='cc')droptableccifexists(select*fromsysobjectswherename='ff')droptableffifexists(select*fromsysobjectswherename='uu')droptableuuifexists(select*fromsysobjectswherename='yy')droptableyyselectcpzidintoaafromap_detailwherecvouchtype='48'andcflag='ar'and(icamount0oricamount_f0)andiflag=0andcprocstyle='48'andbprepay=0andcpzidisnotnullandccodeisnullgroupbycpzidselectaa.cpzid,ccodeintofffromap_detailjoinaaonap_detail.cpzid=aa.cpzidgroupbyaa.cpzid,ap_detail.ccodehavingap_detail.ccodeisnotnullselecticoclosesidintobbfromap_detailwherecvouchtype='48'andcflag='ar'and(icamount0oricamount_f0)andiflag=0andcprocstyle='48'andbprepay=0andcpzidisnullandccodeisnullselectid,ckmintoccfromap_closebillsjoinbbonap_closebills.id=bb.icoclosesidselecticlosesidintouufromap_detailwherecvouchtype='48'andcflag='ar'and(icamount0oricamount_f0)andiflag=0andcprocstyle='9p'andccodeisnullselectckm,idintoyyfromap_closebillsjoinuuonap_closebills.id=uu.iclosesidupdateap_detailsetccode=cc.ckmfromap_detailjoincconap_detail.icoclosesid=cc.idwhereccodeisnullupdateap_detailsetap_detail.ccode=ff.ccodefromap_detailjoinffonap_detail.cpzid=ff.cpzidwherecvouchtype='48'andcflag='ar'and(icamount0oricamount_f0)andiflag=0andcprocstyle='48'andbprepay=0andap_detail.cpzidisnotnullandap_detail.ccodeisnullupdateap_detailsetap_detail.ccode=ff.ccodefromap_detailjoinffonap_detail.cpzid=ff.cpzidwherecprocstyle='9P'andccovouchtype='48'andcflag='ar'andap_detail.cpzidisnotnullandap_detail.ccodeisnullupdateap_detailsetccode=yy.ckmfromap_detailjoinyyonap_detail.iclosesid=yy.idwherecvouchtype='48'andcflag='ar'and(icamount0oricamount_f0)andiflag=0andcprocstyle='9p'andccodeisnull。
回复

使用道具 举报

发表于 2016-9-25 16:11:16 | 显示全部楼层
用友U8ERP软件免费下载地址截止2016年已发布的版本全部在下方,安装教程请认真参考:http://www.yyrjxz.com/xue/u8azjc.html 进行安装。
1、用友MERPu811软件免费下载地址:http://www.yyrjxz.com/yongyou/MERPU811.1.html
2、用友U82.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8old820.html
3、用友U83.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8old830.html
4、用友U852erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U852.html
5、用友U860erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u860.html
6、用友U861erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u861xz.html
7、用友U870erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u870.html
8、用友U872erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u871.html
9、用友U82.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U872.html
10、用友U890erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u890.html
11、用友U810.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U810.0.html
12、用友U810.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V10.1.html
13、用友U811.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V11.0.html
14、用友U8+v11.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/U8V11.1.html
15、用友U8+v12.0erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8120.html
16、用友U8+v12.1erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8121.html
17、用友U8+v12.5erp软件免费下载地址:http://www.yyrjxz.com/yongyouu8/u8125.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|用友十万个为什么 ( 赣ICP备13006939号 )

GMT+8, 2025-8-2 01:38 , Processed in 0.050969 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表