金蝶专业版收付款类单据删除报错:Original Record has been deleted?

[全站通告] 想快速节省您的时间并可接受付费的朋友,可扫右边二维码加博主微信-非诚勿扰!

【问题描述】

收款单,付款单,预收单,预付单等收付款单删除报错:Original Record has been deleted(如下图所示),且如果操作审核这张单据会提示:往来表中不存在对应的单据记录!

【原因分析】

单据往来表t_rp_contact缺失记录。

【解决方案】

1、执行以下语句查出异常单据的单据内码(XSKD000619对应异常单据编号):

select FBillID from t_RP_NewReceiveBill where FNumber in (‘XSKD000619′)

2、再执行以下语句补上往来表(XSKD000619对应异常单据编号,3030对应异常单据内码):

insert into t_rp_contact(FID,FYear,FPeriod,FRP,FType,FDate,FFincDate,FNumber,FCustomer,FDepartment,

FEmployee,FCurrencyID,FExchangeRate,FAmount,FAmountFor,FRemainAmount,FRemainAmountFor,

FContractNo,FInvoiceID,FRPBillID,FBillID,FBegID,FExpenseID,FBussinessDiscount,FCashDiscount,

FRPDate,FSuperDays,FDirectSale,FSaleBackAmount,FSaleBackAmountFor,FDue,FIsBad,FBadReason,

FVoucherID,FGroupID,FAccountID,FIsInit,FStatus,FPost,FToBal,FPre,FK3Import,FInterestRate,

FCheckType,FBillType,FInvoiceType,FItemClassID,FExplanation,FSmInvID,FPreparer,UUID)

values  (99999,2023,9,1,5,’2023-09-30′,’2023-09-30′,’XSKD000619′,501,274,285,1,1,5831.26,5831.26,5831.26,5831.26,”,0,0,3030,0,0,0.00,0.00,’2023-09-30’,0,0,0.00,0.00,0,0,null,0,0,0,0,0,0,0,0,0,0,3,1000,0,1,”,0,16394,NEWID())

3、然后删除收款单重新制单(必须要删除单据)。

【注意事项】

 

正式账套执行脚本前请先做好备份,建议待在测试账套中核实无误后再在正式账套中执行。

问题未解决?如愿 付费解决 相关问题可加Q或微信973105966,右侧扫一扫添加好友

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表回复

加入本站VIP会员,海量资源免费查看下载

目前为止共有136位优秀的VIP会员加入! 立即加入!