技术杂谈
网络新概念,云计算、大数据、O2O、电商。。。。
网络新概念,云计算、大数据、O2O、电商。。。。
2017-05-15 10:42:38
--/////###################/////////////////////////////// --drop table #tmphookcaigou --drop table #tmphook ---1 save hookid Select FInterID,FBillNo,FHookInterID into #tmphookstock From icstockbill Where FHookinterID<>0 Select FInterID,FBillNo,FHookInterID into #tmphookcaigou From ICPurchase Where FHookinterID<>0 Select FBillNo,FInterID,FHookinterID into #tmphook From ICSale Where FHookinterID<>0 --2 update hookid and update ICPurchase set FCheckerID=0 where FCheckerID!=0 update ICPurchase set FHookinterID=0 Where FHookinterID<>0 update ICSale set FCheckerID=0 where FCheckerID!=0 update ICSale set FHookInterID=0 Where FHookinterID<>0 update icstockbill set FCheckerID=0 where FCheckerID!=0 update icstockbill set FHookInterID=0 Where FHookinterID<>0 --////////////////////////////////////////////// --恢复采购发票的hookerid update ICPurchase set FHookinterID=(select FHookInterID from #tmphookcaigou where #tmphookcaigou.FInterID=ICPurchase.FInterID) Where FInterID in (select FInterID from #tmphookcaigou) --恢复发票的hookerid update ICSale set FHookinterID=(select FHookInterID from #tmphook where #tmphook.FInterID=ICSale.FInterID) Where FInterID in (select FInterID from #tmphook) --恢复stock的hookerid update icstockbill set FHookinterID=(select FHookInterID from #tmphookstock where #tmphookstock.FInterID=icstockbill.FInterID) Where FInterID in (select FInterID from #tmphookstock) --////////////////////////////////////////////// --/////###################//////////////////////////////
金蝶k3 13.1版本反初始化的时候出现单据核销问题解决,牵涉到采购发票、发票、单据三个表