专业版采购发票到票之后钩稽核算产生的红蓝字单据无法删除,但是发票与原入库单都已经删除掉了?

【问题描述】
专业版16.0,反钩稽不删除红蓝冲回单,又无法直接删除。
【原因分析】
属于程序问题,需要安装最新补丁,再用解决方案里的脚本修复历史数据。
【解决方案】
可参考以下脚本执行处理:
select t2.FDate,t2.FBillNo,t2.FHookInterID,t2.FHookStatus,t2.FTranType,t2.FROB,t2.FStatus,t2.FCheckerID,t2.FCheckDate,t2.FChildren,t2.FVchInterID,t1.FInterID,t1.FEntryID,t1.FNote
into #ICStockBill
from ICStockBillEntry t1
inner join ICStockBill t2 on t1.FInterID=t2.FInterID
inner join (
select t2.FInterID,t1.FEntryID,t2.FTranType,t2.FHookInterID,t1.FSourceInterId,t1.FSourceEntryID,t1.FSourceTranType,t1.FNote
from ICStockBillEntry t1
inner join ICStockBill t2 on t1.FInterID=t2.FInterID
where t2.FTranType=1 and t1.FNote not like '%核算自动生成%'
)t3 on t3.FInterID=t1.FSourceInterId and t3.FEntryID=t1.FSourceEntryID and t2.FTranType=t1.FSourceTranType
where t2.FTranType=1 and isnull(t2.FVchInterID,0)=0 and t1.FNote like '%核算自动生成%' and t2.FHookInterID<>t3.FHookInterID
go
alter table ICStockBil
专业版采购发票到票之后钩稽核算产生的红蓝字单据无法删除,但是发票与原入库单都已经删除掉了?
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



