南通金蝶

江苏金软软件技术有限公司

销售热线:0513-85589488

销售热线:188-6298-1058

联系人:汤女士
地址:南通市崇川区工农南路118号汇金国际B座16楼1606室
热线:0513-85589488
电话:188-6298-1058
邮箱:sales@ntkingdee.com

新闻资讯

南通金蝶kis专业版V12 会计科目余额表中同一会计科目出现多条记录现象(上篇)

作者:南通金蝶  发表日期:2012-11-12  浏览:1332

 

会计科目余额表中同一科目出现多条记录现象如下:


    问题描述:会计科目余额表中过滤本期,科目选择‘其他应收款’,勾选显示核算项目,点击确定。 查询出的报表中显示有部分客户显示两行数据,正确数据为这两行数据之和。

  
    问题分析:这种情况的出现一般是由于核算项目横表中被凭证表,余额表引用的核算项目组合有重复记录  

     解决方法:

1、创建临时表t_itemdetail_error,把重复核算项目记录插入该表 
        select a.*, a.fdetailid Fdetailid_temp into t_itemdetail_error         from t_itemdetail a join t_itemdetail b  
        on a.f1=b.f1 and a.fdetailcount=b.fdetailcount  
        where a.fdetailcount=1 and a.fdetailid<>b.fdetailid and a.f1>0 order by a.f1  
2、在临时表t_itemdetail_error中修改错误的fdetailid值(以最小fdetailid值为基准): 
        update b set b.fdetailid_temp=a.fdetailid  
        from t_itemdetail_error a  
        join t_itemdetail_error b on a.f1=b.f1 and a.fdetailcount=b.fdetailcount 
        where a.fdetailcount=1 and a.fdetailid<b.fdetailid and a.f1>0  3、创建余额表临时表t_balance_temp : 
        select * into t_balance_temp from t_balance  
        order by fyear,fperiod,faccountid,fdetailid,fcurrencyid  
4、更新余额表临时表的错误detailid值:  
        update a set a.fdetailid=b.fdetailid_temp from t_balance_temp a join t_itemdetail_error b on a.fdetailid=b.fdetailid  
5、创建临时表temp002: 
       select top 0 * into temp002 from t_balance   
         南通金蝶软件    南通金蝶KIS专业版

drug prescription card coupon for cialis discount coupon for cialis
free prescription cards go cialis.com coupon
manufacturer coupons for prescription drugs drug coupons free discount prescription card
amoxil 400 mg amoxilan 500 mg amoxilan 500 mg
memantine actavis site memantine ramq
bimatoprost open bimatoprost hair
标签:
友情链接:南通金蝶

版权所有:江苏金软软件技术有限公司 All Right Reserved 苏ICP备14015688号 在线客服 QQ

联系人:汤女士   固定电话:0513-85589488   销售热线:188-6298-1058   地址:南通市崇川区工农南路118号汇金国际B座16楼1606室