问题现象: | 1、2012年应收应付期初余额查询结果是2011年期初数,2011年发生的单据在2012年期初没有记录; 2、查询期初余额某客户(或供应商)的收款单或其他应收单(付款或其他应付)均提示单据不存在或单据已被删除或权限不够,打上最新应收应付补丁报控件错误无法显示; 3、2012年期初余额存在无单据号的单据,无法查询。 [2012-1-17 9:46:33 补充] 数据已上传至服务器,数据名称:问题号201201170028(2011-2012年节后数据) [2012-2-14 9:45:26 补充] 银行结存期初为负数 |
问题原因: | |
解决方案: | 您好 该数据分析答复如下: 一.2012年应收应付期初余额查询结果是2011年期初数,2011年发生的单据在2012年期初没有记录; 2011,2012年数据在一个数据库里,共用期初界面,所以这里看到的还是2011年的期初. 二.查询期初余额某客户(或供应商)的收款单或其他应收单(付款或其他应付)均提示单据不存在或单据已被删除或权限不够, 如应收单: cdwcode='17260',cvouchid='0000000208' 可以重现问题. 由于单据模版ID不对造成的,修改办法如下:请对数据库执行更新,可以解决: 应收单: update Ap_Vouch set vt_id=8054 from Ap_Vouch left join Ap_Vouchs on Ap_Vouch.clink=Ap_Vouchs.clink where Ap_Vouchs.clink is null and cflag='AR' and vt_id not in (Select distinct vt_id From VoucherTemplates where vt_name like ( '应收单显示模版')) 应付单: update Ap_Vouch set vt_id=8056 from Ap_Vouch left join Ap_Vouchs on Ap_Vouch.clink=Ap_Vouchs.clink where Ap_Vouchs.clink is null and cflag='AP' and vt_id not in (Select distinct vt_id From VoucherTemplates where vt_name like ( '应付单显示模版')) 三. 应收的期初收款单不能联查,如cdwcode='18047' and cvouchid='0000000283' 可以重现问题. 单据模版不对造成的问题,请对数据库执行更新. 应收收款单更新: update Ap_CloseBill set vt_id=8052 from Ap_CloseBill inner join Ap_CloseBills on Ap_CloseBill.iid=Ap_CloseBills.iid where cflag='AR' and vt_id not in (Select distinct vt_id From VoucherTemplates where vt_name in( '应收收款单显示模版')) 应付付款单更新: update Ap_CloseBill set vt_id=8053 from Ap_CloseBill inner join Ap_CloseBills on Ap_CloseBill.iid=Ap_CloseBills.iid where cflag='AP' and vt_id not in (Select distinct vt_id From VoucherTemplates where vt_name in( '应付付款单显示模版')) 四.2012年期初余额存在无单据号的单据,无法查询。 经分析,无单据号的数据,全部是期初票据的合计数据, 更新办法如下; 1.单据模版ID不对, update Ap_Note set vt_id= 8050 from Ap_Note where cflag='AR' and bstartflag=1 2.ar_detail表数据不对. update ar_detail set cCoVouchType=cVouchType,cCoVouchID=cVouchID from ar_detail where iperiod=0 and cvouchtype='50' 五.后补充的总账问题,请按新问题号提交再安排处理,以后提交问题请按模块分别提交 。 脚本同时发到:luoy@cheasy.cn 由于直接修改数据库,修改前请务必做好数据备份,验证确认没有问题再使用! 如对问题答复有疑问敬请及时反馈 U8/CRM/PLM |
相关补丁: | |
版本: | U8 V10.0 |
模块: | 应收应付 |
产品: | 财务会计 |
问题名称: | 年结后应收应付及期初数据问题 |
最后更新: | 2012-02-25 23:24:00 |