用友软件 发表于 2016-9-25 15:37:19

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

问题现象:在用友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
页: [1]
查看完整版本: 用友U8.51软件中查询应收业务明细帐带科目查询出现不少的核销记录,导致与不带科目查询出的结果不平?