用友软件免费下载(www.bbsufida.com)旨在提供全系列最新最全的用友财务软件免费下载地址,快速下载请添加微信 yyrjgls

固定资产不能计提折旧-用友U8

admin2016-06-20347用友U8临时插入数据
对应版本:用友U8.50sp对应产品线:财务系统对应模块:固定资产模块问题现象:固定资产10月份不能计提折旧。问题原因:经检测,数据库中有数据丢失,由于按单部门折旧,可做如下修改:解决方案:一、增加fa_cards_detail表中的数据(由fa_cards表获得):1.将fa_cards中的数据插入临时表,以便生成自增字段:selectidentity(int,1,1)assid,scardid,scardnum,sdeptnum,loptid,ddisposedate,iDisposePeriod,dblvalue,dbldecdeprt,dblbv,dblcanwork,dbltransindeprtcard,dbltransoutdeprtcard,dbldecprevaluet,dblretdecprevaluet,dblBuildArea,lBuildNum,lMachinNum,dblMachinWintotemptablefromfa_cards2.由临时表插入fa_cards_detail:setidentity_insertfa_cards_detailoninsertintofa_cards_detail(sid,scardid,scardnum,sdeptnum,loptid,ddisposedate,iDisposePeriod,dblvalue,dbldecdeprt,dblbv,dblcanwork,dbltransindeprtcard,dbltransoutdeprtcard,dbldecprevaluet,dblretdecprevaluet,dblBuildArea,lBuildNum,lMachinNum,dblMachinW)selectsid,scardid,scardnum,sdeptnum,loptid,ddisposedate,iDisposePeriod,dblvalue,dbldecdeprt,dblbv,dblcanwork,dbltransindeprtcard,dbltransoutdeprtcard,dbldecprevaluet,dblretdecprevaluet,dblBuildArea,lBuildNum,lMachinNum,dblMachinWfromtemptablesetidentity_insertfa_cards_detailoff3.删除临时表droptabletemptable二、补全fa_DeprTransactions_Detail表中的数据:1.将fa_DeprTransactions中的数据插入临时表,以便生成自增字段:selectIDENTITY(int,1,1)ASsid,fa_DeprTransactions.[sCardNum],[sDeptNum],[dblDepr1],[dblDeprT1],[dblDepr2],[dblDeprT2],[dblDepr3],[dblDeprT3],[dblDepr4],[dblDeprT4],[dblDepr5],[dblDeprT5],[dblDepr6],[dblDeprT6],[dblDepr7],[dblDeprT7],[dblDepr8],[dblDeprT8],[dblDepr9],[dblDeprT9],[dblDepr10],[dblDeprT10],[dblDepr11],[dblDeprT11],[dblDepr12],[dblDeprT12],[dblMonthValue1],[dblMonthValue2],[dblMonthValue3],[dblMonthValue4],[dblMonthValue5],[dblMonthValue6],[dblMonthValue7],[dblMonthValue8],[dblMonthValue9],[dblMonthValue10],[dblMonthValue11],[dblMonthValue12],[dblDeprThisYear]intotemptablefromfa_DeprTransactionsleftouterjoin(selectdistinctscardNum,sdeptnumfromfa_cards)aonfa_DeprTransactions.scardnum=a.scardnum2.由临时表插入fa_DeprTransactions_Detail:setidentity_insertfa_DeprTransactions_Detailoninsertintofa_DeprTransactions_Detail(sid,[sCardNum],[sDeptNum],[dblDepr1],[dblDeprT1],[dblDepr2],[dblDeprT2],[dblDepr3],[dblDeprT3],[dblDepr4],[dblDeprT4],[dblDepr5],[dblDeprT5],[dblDepr6],[dblDeprT6],[dblDepr7],[dblDeprT7],[dblDepr8],[dblDeprT8],[dblDepr9],[dblDeprT9],[dblDepr10],[dblDeprT10],[dblDepr11],[dblDeprT11],[dblDepr12],[dblDeprT12],[dblMonthValue1],[dblMonthValue2],[dblMonthValue3],[dblMonthValue4],[dblMonthValue5],[dblMonthValue6],[dblMonthValue7],[dblMonthValue8],[dblMonthValue9],[dblMonthValue10],[dblMonthValue11],[dblMonthValue12],[dblMonthValue13],[dblDeprThisYear])selectsid,[sCardNum],[sDeptNum],[dblDepr1],[dblDeprT1],[dblDepr2],[dblDeprT2],[dblDepr3],[dblDeprT3],[dblDepr4],[dblDeprT4],[dblDepr5],[dblDeprT5],[dblDepr6],[dblDeprT6],[dblDepr7],[dblDeprT7],[dblDepr8],[dblDeprT8],[dblDepr9],[dblDeprT9],[dblDepr10],[dblDeprT10],[dblDepr11],[dblDeprT11],[dblDepr12],[dblDeprT12],[dblMonthValue1],[dblMonthValue2],[dblMonthValue3],[dblMonthValue4],[dblMonthValue5],[dblMonthValue6],[dblMonthValue7],[dblMonthValue8],[dblMonthValue9],[dblMonthValue10],[dblMonthValue11],[dblMonthValue12],[dblMonthValue12],[dblDeprThisYear]fromtemptablesetidentity_insertfa_DeprTransactions_Detailoff3.删除临时表droptabletemptable

微信号:yyrjgls
技术咨询,有偿服务!
复制微信号

本文链接:https://www.bbsufida.com/u8/41404.html

网友评论

热门文章
侧栏广告位
随机文章