收付款类单据删除报错:Original Record has been deleted?

栏目:kis知识作者:金蝶来源:金蝶云社区发布:2024-09-22浏览:1

收付款类单据删除报错: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、然后删除收款单重新制单(必须要删除单据)。


【注意事项】

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

收付款类单据删除报错:Original Record has been deleted?

【问题描述】收款单,付款单,预收单,预付单等收付款单删除报错:Original Record has been deleted(如下图所示),且如果操作审核这...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息