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

折旧清单折旧数字与折旧分配表不一致问题-用友U8

admin2016-06-201130用友U8折旧卡片数字
对应版本:用友U8.52对应产品线:财务系统对应模块:固定资产模块问题现象:固定资产的卡片管理折旧数字(等于)折旧清单折旧数字(不等于)折旧分配表折旧数字(折旧分配表的数字少了2万左右)有几张卡片在后台可以看见,但是在前台看不见(如00130、00146),且在后台数据库中比较该卡片和正常卡片数据时没有发现任何异常;在查询卡片的时候对数据进行跟踪未能发现任何有效线索.现在客户希望可以让折旧清单和折旧分配表一致。问题原因:存在fa_DeptScale与fa_cards中相同卡片部门不一致的记录。解决方案:参照执行如下脚本即可:1、检查分析selectscardnum,max(sid)assidintotempdb..afromfa_DeptScalegroupbyscardnumselectscardnum,max(scardid)asscardidintotempdb..bfromfa_cardsgroupbyscardnumselect*fromfa_DeptScalewheresidin(selectsidfromtempdb..a)orderbysidselect*fromfa_cardswherescardidin(selectscardidfromtempdb..b)orderbyscardidselectd.*fromfa_DeptScalecinnerjoin(select*fromfa_cardswherescardidin(selectscardidfromtempdb..b))donc.scardnum=d.scardnumandc.sdeptnumd.sdeptnumwherec.sidin(selectsidfromtempdb..a)2、--所差金额selectsum(dblDepr3)fromfa_DeprTransactionswherescardnumin(selectd.scardnumfromfa_DeptScalecinnerjoin(select*fromfa_cardswherescardidin(selectscardidfromtempdb..b))donc.scardnum=d.scardnumandc.sdeptnumd.sdeptnumwherec.sidin(selectsidfromtempdb..a))3、--修复fa_DeptScale与fa_cards相同卡片部门不一致的记录updatecsetc.sdeptnum=d.sdeptnumfromfa_DeptScalecinnerjoin(select*fromfa_cardswherescardidin(selectscardidfromtempdb..b))donc.scardnum=d.scardnumandc.sdeptnumd.sdeptnumwherec.sidin(selectsidfromtempdb..a)droptabletempdb..adroptabletempdb..b注意做好数据备份!!

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

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

网友评论

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