【正文】
科目沒有權限,或核算項目無權限,則一定是t_fabalexpense,或 t_faexpense中的 facctid( fdetailid)對應的科目 (核算項目)在科目表( t_itemdetail)不存在或已禁用,或不是最明細 問題定位 案例二 找出問題的根本原因 求證問題 select * from t_faexpense where facctid=1070無記錄 select * from t_fabalexpense where facctid=1070643 select * from t_account where faccountid=1070無記錄 是否還有其它不存在的科目 select distinct facctid from t_fabalexpense where facctid not in (select faccountid from t_account) 案例二 找出問題的解決方法 一種方法:替代 一種方法:新增 案例二 帳套: 案例三 , t_fabalance的 fdepr已生成數(shù)據(jù) famount數(shù)據(jù)與 t_fabalance的 fdepr不符 一般是 t_fabalexpense數(shù)據(jù)有問題,或缺少(多)記錄,或同一卡片,折舊額不等(根本原因: frate錯誤) 問題定位 案例三 求證問題: 差 6分錢 select sum(famount) from t_fabalexpense where fbalid in ( select fbalid from t_fabalance where fperiod=8 and fyear=2022) select sum(fdepr)from t_fabalance where fperiod=8 and fyear= 錯誤原因:丟記錄嗎? select distinct falterid from t_facard468 select distinct falterid from t_faexpense468 select * from t_faalter where fnew=1402 select * from t_faalter where fcleared=117 8月必須有 385余額記錄 select fbalid from t_fabalance where fperiod=8 and fyear=2022385 select distinct fbalid from t_fabalexpense where fbalid in ( select fbalid from t_fabalance where fperiod=8 and