发布时间:2026-5-2
特价活动:>>>> 用友U8、T6、T+、T3软件产品4折优惠,畅捷通T+cloud、好会计、好业财、好生意云产品8折优惠,另有话费赠送。
“固定资产总账”中的9月累计折旧余额与”累计折旧表一“不符。
问题回复:数据库从9月份开始就有问题有868条记录8月份的累计折旧和9月份的累计折旧额相等,还有其他数据也有问题。要求把累计折旧给改好,我出的脚本只是把9月份-12月份的累计折旧进行了调整。建议执行前做好账套备份
update fa_deprtransactions set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9=dblDeprT8 and dbldepr9<>0 update fa_deprtransactions_detail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9=dblDeprT8 and dbldepr9<>0 update fa_deprtranscation_sourcedetail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9=dblDeprT8 and dbldepr9<>0 goupdate fa_deprtransactions set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldepr9<>0 update fa_deprtransactions_detail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldepr9<>0 update fa_deprtranscation_sourcedetail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldepr9<>0 goupdate fa_deprtransactions set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldeprT9<>0 update fa_deprtransactions_detail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldeprT9<>0 update fa_deprtranscation_sourcedetail set dbldeprT9=dbldeprT8+dbldepr9 where dbldeprT9<>dblDeprT8+dbldepr9 and dbldeprT9<>0 goupdate fa_deprtransactions set dbldeprT10=dbldeprT9+dbldepr10,dbldeprT11=dbldeprT9+dbldepr10+dblDepr11,dbldeprT12=dbldeprT9+dbldepr10+dblDepr11+dbldepr12update fa_deprtransactions_detail set dbldeprT10=dbldeprT9+dbldepr10,dbldeprT11=dbldeprT9+dbldepr10+dblDepr11,dbldeprT12=dbldeprT9+dbldepr10+dblDepr11+dbldepr12update fa_deprtranscation_sourcedetail set dbldeprT10=dbldeprT9+dbldepr10,dbldeprT11=dbldeprT9+dbldepr10+dblDepr11,dbldeprT12=dbldeprT9+dbldepr10+dblDepr11+dbldepr12 goupdate fa_cards_sourcedetail set SourceDeprInValue= a.dbldeprT12 from fa_deprtranscation_sourcedetail a where a.sCardNum=fa_cards_sourcedetail.sCardNum and a.sSourceCode =fa_cards_sourcedetail.sSourceCode and sCardID in( select MAX(scardid) from fa_cards_sourcedetail group by scardnum)GO
截屏,微信识别二维码
客服QQ:5151867
(点击QQ号复制,添加好友)