在12月份进行期末处理的时候,提示“尚有已全部暂估报销的单据未进行处理,不能进行12月的期末处理!”
原因分析: 原因1:对于暂估记账的入库单,发票到时,入库数量全部结算后,要在核算模块进行“暂估成本处理”,如果没有执行“暂估入库成本处理”的操作,则平时月份在期末处理的时候不提示,但12月份在进行核算模块期末处理的话,就会出现上述提示。原因2:核算模块已经进行了“暂估成本处理”,但是在“采购结算子表pursettlevouchs”中“是否记账”标志仍是“否”,也会出现上述提示。
1、先在核算模块的“暂估入库成本处理”中,看是否还存在没有处理的纪录。如果有,则点击“暂估”按钮,进行处理(相当于记账的意思)。
2、如果不存在这样的纪录,则根据
U8版
查结算表,看是否有记录。
select pursettlevouchs.*
from (rdrecords left join pursettlevouchs on rdrecords.autoid=pursettlevouchs.irdsid And pursettlevouchs.cUpsotype = N'01')
where (IsNUll(rdrecords.cbaccounter, N'') <> N'') and pursettlevouchs.bAccount=0
and isnull(rdrecords.iquantity,0)=isnull(rdrecords.isquantity,0)
有则用更新
update pursettlevouchs
set bAccount=1
from (rdrecords left join pursettlevouchs on rdrecords.autoid=pursettlevouchs.irdsid And pursettlevouchs.cUpsotype = N'01')
where (IsNUll(rdrecords.cbaccounter, N'') <> N'') and pursettlevouchs.bAccount=0
and isnull(rdrecords.iquantity,0)=isnull(rdrecords.isquantity,0)
T6版
处理方法如下: 1、先在核算模块的“暂估入库成本处理”中,看是否还存在没有处理的纪录。如果有,则点击“暂估”按钮,进行处理(相当于记账的意思)。 2、如果不存在这样的纪录,则根据 select pursettlevouchs.* from ((rdrecord inner join rdrecords on rdrecord.id=rdrecords.id) left join pursettlevouchs on rdrecords.autoid=pursettlevouchs.irdsid) where (not rdrecord.caccounter is null) and pursettlevouchs.bAccount=0 and isnull(rdrecords.iquantity,0)=isnull(rdrecords.isquantity,0) 语句判断出在采购结算子表中哪些记录“入库单的数量已经全部结算,并且已经进行暂估成本处理,但在该表中的是否记账标志仍是否”。利用以下语句进行修改: update pursettlevouchs set baccount=1 where id=xx 注意:如果在采购模块只对采购入库单上的部分数量进行了结算,则在核算模块不能进行“暂估入库成本处理”。在采购结算子表中该结算单的“是否记账baccount”标志仍是“否”,不影响期末处理,也不用修改。
T3版
在查询分析器里对问题帐套执行以下语句:update pursettlevouchs set baccount='1' where baccount=0 执行前请备份好帐套,执行后请核实数据。
--select * from vouchtype
select isquantity,iquantity,* from rdrecords
where id in (select id from rdrecord where cvouchtype='01' and ddate<'2012-01-01')
and isquantity <>iquantity and imatsettlestate=0
select * from rdrecord where id in (select id from rdrecords where id in (select id from rdrecord where cvouchtype='01')
and isquantity <>iquantity)
order by ddate
select imatsettlestate,isquantity,iquantity,* from rdrecords where bcosting=1
update rdrecords set isquantity=iquantity where id in (select id from rdrecord where cvouchtype='01' and ddate<'2012-01-01')
and isquantity <>iquantity
select pursettlevouchs.*
from (rdrecords left join pursettlevouchs on rdrecords.autoid=pursettlevouchs.irdsid
And pursettlevouchs.cUpsotype = N'01')
where (IsNUll(rdrecords.cbaccounter, N'') <> N'') and pursettlevouchs.bAccount=0
and isnull(rdrecords.iquantity,0)=isnull(rdrecords.isquantity,0)
update pursettlevouchs
set bAccount=1
from (rdrecords left join pursettlevouchs on rdrecords.autoid=pursettlevouchs.irdsid
And pursettlevouchs.cUpsotype = N'01')
where (IsNUll(rdrecords.cbaccounter, N'') <> N'') and pursettlevouchs.bAccount=0
and isnull(rdrecords.iquantity,0)=isnull(rdrecords.isquantity,0)