一、总帐系统凭证过账时提示 3064,名称或代码已经被使用:
问题说明:过账时提示凭证无法过账、查询账薄报表时无法查询、无法结转损益、结转损益之后无法过帐或仍有科目余额,提示:在结果的数据列中多次出现F1,名称或代码已经存在等问题提示。
问题的原因:这种情况一般是fdetailcount数目不对或者相同的核算项目组合出现重复记录
解决的方法:exec sp_cleanitemdetailv--横表生成纵表的存储结构
update a set a.fdetailcount=b.Fcount from t_itemdetail a join (select
Fdetailid,count(Fitemid) Fcount from t_itemdetailv where fitemid<>0 group
by Fdetailid) b on a.fdetailid=b.fdetailid--更新fdetailcount exec sp_cleanitemdetailv--重新生成纵表
update t_account set Fdetailid =(select min(fdetailid) from t_itemdetail
where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1)
and Fdetailcount=1 and F1=-1 ) where Fdetailid in (select (fdetailid) from
t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where
fitemid=-1) and Fdetailcount=1 and F1=-1 )
delete from t_itemdetail where Fdetailid in(select (fdetailid) from
t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where
fitemid=-1) and Fdetailcount=1 and F1=-1 ) and Fdetailid <>(select
min(fdetailid) from t_itemdetail where fdetailid in (select
Fdetailid from
t_itemdetailv where fitemid=-1) and Fdetailcount=1 and F1=-1 )
exec sp_cleanitemdetailv--重新生成纵表
delete from t_balance where fdetailid not in (select fdetailid from
t_itemdetail)
delete from t_quantitybalance where fdetailid not in (select fdetailid from
t_itemdetail)
delete from t_profitandloss where fdetailid not in (select fdetailid from
t_itemdetail)
总帐系统 凭证反过账后重新过账,请根据实际情况变通处理。
南通金蝶/
南通金蝶KIS专业版-南通金软
free prescription cards
click cialis.com coupon
naprosyn roche
go naprosyn