解决方案: |
1、在当前年度库中参照执行如下语句可查询采购结算单删除时,系统没有更新结算信息的收发主子表信息:
select s.iQuantity,s.iMoney,s.iSQuantity ,s.dSDate,a.*
from rdrecords s,rdrecord a
where s.iSQuantity <>0 and a.id=s.id
and s.AutoID not in (select distinct iRdsID from PurSettleVouchs)
and a.cAccounter is null
2、在当前年度库中参照执行如下语句删除RERECORDS表中有关的结算信息即可:
update s set s.dSDate=null,s.iMoney=0,s.iSQuantity=0,s.iSNum=0
from rdrecords s,rdrecord a
where s.iSQuantity <>0 and a.id=s.id and s.AutoID not in (select distinct iRdsID from PurSettleVouchs)
and a.cAccounter is null
3、从支持网站下载并安装821存货最新补丁,以避免以后再出现类似现象。
注意做好数据备份! |