- 打卡等级:无名新人
- 打卡总天数:1
- 打卡月天数:0
- 打卡总奖励:3
- 最近打卡:2024-10-08 17:50:45
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
U8固定资产对账不平问题处理U8固定资产对账不平,只是期初不平,借方发生、贷方发生、期末余额都相等;同时还有一个问题,折旧清单中的原值与累计折旧合计数也少,初步判断有部分卡片参与了折旧,但折旧清单中未显示出来;比对后发生部分卡片,没有做过任何变动也没有做过减少,但fa_cards 表中dTransDate字段值不为空,将该字段的值清空后对账正常,脚本如下:
select dTransDate,sDisposer,* from fa_cards
where sAssetNum in (select sAssetNum from fa_cards group by sAssetNum having COUNT(*)=1)
and dTransDate is not null
select dTransDate,sDisposer,*
from fa_cards
where sAssetNum in (select sAssetNum from fa_cards
where sAssetNum in (select sAssetNum from fa_cards group by sAssetNum having COUNT(*)=1)
and dTransDate is not null)
update fa_cards set dTransDate=null
where sAssetNum in (select sAssetNum from fa_cards
where sAssetNum in (select sAssetNum from fa_cards group by sAssetNum having COUNT(*)=1)
and dTransDate is not null)
|
|