固定资产初始化时对账检查不平
金蝶云社区-云社区用户j22d1234
云社区用户j22d1234
0人赞赏了该文章 1,352次浏览 未经作者许可,禁止转载编辑于2015年04月24日 16:19:25

适用情况:导出初始化卡片查询原值总额与总账数据一致,但对账检查时固定资产原值显示比总账多。

原因分析:系统反初始化过,考虑存在垃圾数据

--查询初始化卡片数量
select count(*) from t_fa_famoncard where fcompanyid=(select fid from t_org_company where fnumber='公司编码')
and ffaperiodid is null

--查询curcard数量
select count(*) from t_Fa_facurcard where fcompanyid=(select fid from t_org_company where fnumber='公司编码')

--查询余额表数量
select count(*) from t_fa_faaccountbalance where fcompanyorgunitid=(select fid from t_org_company where fnumber='公司编码')
and fperiodid=(select fid from t_bd_period where fnumber=初始化期间)

若存在curcard与余额表数量大于初始化卡片数量,则需要查询出来,删除。请提单,联系技术支持处理。