(FAQ)折旧维护重复解决方案
金蝶云社区-金蝶云社区
金蝶云社区
0人赞赏了该文章 1,241次浏览 未经作者许可,禁止转载编辑于2015年03月02日 00:00:00
【问题】: (FAQ)折旧维护重复解决方案
版本: 7.0.1
模块: 固定资产
【答复】:
查询折旧维护记录: select * from T_FA_FaDepreciation where fcompanyid=(select fid from t_org_company where fnumber='公司编码') and fperiod in (select fid from t_bd_period where fnumber=期间编码) select * from T_FA_FaEvalDepreciation where fcompanyid=(select fid from t_org_company where fnumber='公司编码') and fperiod in (select fid from t_bd_period where fnumber=期间编码) 步骤一: 先把其中一条的公司改下(改别不存在的啥的如:AAA)[T_FA_FaEvalDepreciation、T_FA_FaDepreciation] update T_FA_FaDepreciation set fcompanyid='AAA' where fid='先把其中一条ID改下' update T_FA_FaEvalDepreciation set fcompanyid='AAA' where fid='先把其中一条ID改下' eg: update T_FA_FaDepreciation set fcompanyid='AAA' where fid='ABCDEFGHIEKSIHS' update T_FA_FaEvalDepreciation set fcompanyid='AAA' where fid='EWSDGETESCFDGDG' 步骤二:前台刷新,反折旧(如果是已审核的,先把允许反折旧参数禁用了,重新打开折旧维护,双击调整列,修改个数据,然后再改0,提交,审核,反折旧) 步骤三:把第一步修改的公司改回来(改回正确的),刷新 update T_FA_FaDepreciation set fcompanyid=(select fid from t_org_company where fnumber='当前公司编码') where fid='上面修改公司的ID' update T_FA_FaEvalDepreciation set fcompanyid=(select fid from t_org_company where fnumber='当前公司编码') where fid='上面修改公司的ID' eg: update T_FA_FaDepreciation set fcompanyid=(select fid from t_org_company where fnumber='当前公司编码') where fid='ABCDEFGHIEKSIHS' update T_FA_FaEvalDepreciation set fcompanyid=(select fid from t_org_company where fnumber='当前公司编码') where fid='EWSDGETESCFDGDG' 步骤四:前台刷新,反折旧(如果是已审核的,先把允许反折旧参数禁用了,重新打开折旧维护,双击调整列,修改个数据,然后再改0,提交,审核,反折旧)