金蝶k3基础数据分析讲义

上传人:今*** 文档编号:108187035 上传时间:2019-10-22 格式:PPT 页数:48 大小:743.50KB
返回 下载 相关 举报
金蝶k3基础数据分析讲义_第1页
第1页 / 共48页
金蝶k3基础数据分析讲义_第2页
第2页 / 共48页
金蝶k3基础数据分析讲义_第3页
第3页 / 共48页
金蝶k3基础数据分析讲义_第4页
第4页 / 共48页
金蝶k3基础数据分析讲义_第5页
第5页 / 共48页
点击查看更多>>
资源描述

《金蝶k3基础数据分析讲义》由会员分享,可在线阅读,更多相关《金蝶k3基础数据分析讲义(48页珍藏版)》请在金锄头文库上搜索。

1、K3总账关键数据分析,技术支持部,2,培训目的,通过练习,掌握基础资料之间的关系 通过练习,掌握科目与核算项目使用详情横纵表之间的关系 通过练习,掌握总账系统中常见数据问题的分析和解决的方法,3,将涉及到资料信息与表有:,系统参数表:t_systemprofile 科目:t_account 币别:t_currency,ID=1表示为记账本位币 凭证字:t_vouchergroup 计量单位:t_measureunit,t_unitgroup,这两个表中必须存在ID为0的记录 核算项目:包括客户、部门、职员、物料、仓库、供应商和自定义的核算项目;涉及的表为t_item,t_itemclass及其

2、中定义的明细表, t_item、 t_itemclass表中必须存在ID为0的记录 凭证分录表:t_voucher,t_voucherentry 核算项目横纵表:t_itemdetail,t_itemdetailv ,这两个表中必须存在ID为0的记录 科目余额表:t_balance 损益类科目本年实际发生表:t_profitandloss,4,将涉及到资料信息与表有:,数量余额表:t_quantitybalance 现金流量表:t_CashFlowBal ,记录总账系统中所有的现金流量信息 初始化往来余额表:t_transinitbalance ,用于记录初始化时的往来数据 往来核销表:t_t

3、ranscheckinfo,用于记录总账中的往来核销记录 自动转账:t_autotransfer、t_autotransferentry、t_AutoTransferEntryItem 自动步长编码表:为表实现自动内码编码,表中的数据规律: update t_identity set fnext=(select max(fitemid) from t_item )+1 where fname=t_item,5,系统参数表关键参数: StartPeriod:启用年度 StartYear:启用期间 PeriodByMonth:是否自定义期间 PeriodCount:每年度的期间数 PeriodDa

4、tes:会计年度的时间序列 EarnAccount:本年利润科目内码 EarnAssignAccount:利润分配科目内码 CurrentPeriod:当前期间 CurrentYear:当前年度 Closed:是否结束初始化,将涉及到资料信息与表有:,T_voucher,T_balance,调汇,结损益,自动转账,t_ProfitAndLoss,t_Quantity Balance,过账,过账,T_voucher,账表查询,数据流向图,期末结账,现金流量 t_CashFlowBal,核销往来 t_transcheckinfo,7,基础资料,核算项目横表:涉及的表为t_ItemDetail,此表

5、是联接各个核算项目业务表的纽带,如科目表,凭证表,余额表等等都与此表有很大的联系。 核算项目纵表为t_ItemDetailV ,此表是由核算项目横表来生成的,可以用SP_CleanItemDetailV这个存储过程来生成 。是核算项目横表另一种形式的表现。在平时的各种报表计算时,程序是直接关联的该表。 关于基础资料之间的具体关系,可以参考Mykingdee上的四月视频培训K3总账部份。,8,t_ProfitandLoss,t_ItemDetailv,t_ItemDetail,t_Item,t_Balance,t_ VoucherEntry,各表与核算项目使用详情横表和纵表的关联,t_ItemC

6、lass,Fitemclassid,t_Account,t_QuantityBalance,t_transinitbalance,t_transcheckinfo,9,T_itemclass,T_itemdetailv,T_itemdetail,T_itemclass与t_itemdetail、t_itemdetailv,其中,自定义的核算项目类别的Fitemclassid是从F3001开始的,增加自定义核算项目类别时,将同时在t_itemdetail表中增加对应的列;但删除该类别时,在t_itemdetail表中该列不会被删除。,10,各数据表与t_itemdetail、t_itemdeta

7、ilv,11,数据逻辑:,1、t_itemdetail表中的Fdetailcount必须正确 Fdetailcount:表示Fdetailid对应的核算项目类别个数,如果错误,将造成凭证无法过账、账薄报表无法查询、无法结转损益,提示:在结果列中多次出现F1等等。 否则将造成科目余额表、试算平衡表等报表不平衡,以及无法结转损益或结转损益后凭证无法过账 exec sp_cleanitemdetailv -数据教正 update a set a.fdetailcount=b.Fcount from t_itemdetail a join (select Fdetailid,count(Fitemid

8、) Fcount from t_itemdetailv where fitemid0 group by Fdetailid) b on a.fdetailid=b.fdetailid exec sp_cleanitemdetailv,12,数据逻辑:,所有核算项目组合使用详情ID即Fdetailid值,相同组合,不允许重复。 2、以下Fdetailid只能为科目属性值使用,即只能出现在t_account表中 select *from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemi

9、d=-1) select *from t_itemdetailV fitemid=-1 如果这些Fdetailid值出现在余额表等数据表中,将造成无法结转损益、查询账薄报表时无法看到具体的名称只能看到数据 如果被科目使用的Fdetailid值重复,建议删除重复值,保留其中的一条。从目前数据来看,非被科目使用的Fdetailid值还没有出现重复的情况。 如果出现重复,将可能产生凭证无法过账、凭证录入时显示要求输入的核算项目类别与实际不符、在科目基础资料中显示的核算项目管理信息与实际不符等等错误。下面是一个案例,其他组合则请更正: and Fdetailcount=3 and F1=-1 and

10、F2=-1 and F3=-1部份的条件即可。 -例:删除客户、职员、部门这三个核算项目类别组合使用ID中的重复值,13,数据逻辑:,1、update t_account 更正科目表上引用的Fdetailid set Fdetailid =(select min(fdetailid) from t_itemdetail-取最小值 where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=3 and F1=-1 and F2=-1 and F3=-1) where Fdet

11、ailid in (select (fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=3 and F1=-1 and F2=-1 and F3=-1) 2、delete from t_itemdetail 删除重复值 where Fdetailid in(select (fdetailid) from t_itemdetail where fdetailid in (select Fdetailid fro

12、m t_itemdetailv where fitemid=-1) and Fdetailcount=3 and F1=-1 and F2=-1 and F3=-1) and Fdetailid (select min(fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=3 and F1=-1 and F2=-1 and F3=-1) exec sp_cleanitemdetailv-更正t_itemdeta

13、ilv,14,数据逻辑:,3、以下Fdetailid只能出现在各余额表、凭证分录表中 select *from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid-1) select *from t_itemdetailV fitemid-1 如果这些Fdetailid值出现在科目表中,则该科目在凭证录入时将显示错误的核算项目管理信息,以及损益类科目无法结转损益;或凭证无法过账。以下凭证分录记录必须必须由用户在软件上补充丢失的核算项目 select b.Fyear,b.Fperio

14、d,c.Fname,b.Fnumber,a.Fentryid,e.Fnumber from t_voucherentry a join t_voucher b on a.fvoucherid=b.fvoucherid inner join t_account e on e.faccountid=a.faccountid inner join t_vouchergroup c on c.fgroupid=b.fgroupid where a.fdetailid not in (select Fdetailid from t_itemdetailv where fitemid not in (-1

15、) order by b.fyear,b.fperiod,c.fname,b.fnumber,a.fentryid,e.fnumber,15,数据逻辑:,4、以下Fdetailid出现在t_balance等数据表中,必须删除 delete from t_balance where fdetailid not in (select Fdetailid from t_itemdetailv where fitemid not in (-1) delete from t_quantitybalance where fdetailid not in (select Fdetailid from t_i

16、temdetailv where fitemid not in (-1) delete from t_profitandloss where fdetailid not in (select Fdetailid from t_itemdetailv where fitemid not in (-1) 否则将造成科目余额表、试算平衡表等报表不平衡,以及无法结转损益或结转损益后凭证无法过账,报表数据查询只显示数据不显示名称等;建议反结账到出现这种情况的上一期再删除。,16,数据逻辑:,5、在t_itemdetail表和t_itemdetailv表中必须存在Fdetailid=0的记录 如果该记录丢失,必须补充,否则将造成凭证无法过账、账薄报表无法查询数据等。Fdetailid=0表示不使用核算项目。 其实在许多表中,都必须要求存在ID=0的记录,如t_measureunit、t_unitgroup、t_item、t_itemclass、t_currency等等 如果t_measur

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号