删除凭证的时候提示凭证发送的通知单已勾稽或已被通知单确认
[操作步骤]
--查询该凭证是否生成有往来通知单
select * from T_CSL_Requisition a where a.FSrcCompanyID in (select fid from T_ORG_Company where fnumber='发出方公司编码') --即需要删除凭证的公司的编码
and a.FVchNumber='凭证编码'
and a.FVoucherID='来源凭证id'
and a.fperiod=期间编码
--备注:来源凭证id通过下面的第一步 查询要删除的凭证fid 获得。期间编码,格式:201601
如果上一步中没有查到通知单记录。
说明是凭证后台辅助账的勾稽状态没有及时更新过来。执行下面的操作
--第一步查询要删除凭证的fid
select fid from t_gl_voucher a where a.fnumber='要删除的凭证号'
and a.FCompanyID in (select fid from T_ORG_Company where fnumber='公司编码')
and a.FPeriodID in (select fid from t_bd_period where fnumber='期间编码')--凭证所在的会计期间 比如
201501表示2015年第一期
--第二步 查询该凭证的分录的fid
select fid from t_gl_voucherentry a where a.fbillid='第一步查询到的fid'
and a.FAccountID =(select fid from t_bd_accountview where fnumber='凭证中往来科目的编码' and fcompanyid in (select fid from T_ORG_Company where fnumber='公司编码'))
--第三步 更改辅助账的勾稽状态
update T_GL_VoucherAssistRecord set FReqCheckStatus=1
where fentryid='第二步查询到的分录fid'
删除凭证的时候提示凭证发送的通知单已勾稽或已被通知单确认
本文2024-09-22 18:18:18发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-99933.html
- 组织人员同步(星空旗舰-飞书)操作手册V1.0.docx
- 金蝶云·苍穹-数据表模型设计器整体介绍_20241017.pdf
- 金蝶云·苍穹新手入门实战课程配套课件 -5第五章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -1第一章.zip
- 金蝶云·苍穹-平台引领,Cosmic让智能无处不在.pdf
- KIS云·旗舰版7.0 生产任务管理解决方案(2024.08.01).pptx
- 金蝶云·苍穹新手入门实战课程配套课件 -4第四章.zip
- 金蝶云·苍穹新手入门实战课程配套课件 -7第七章.zip
- 益企成长讲堂-构建透明化生产车间的新篇章.pptx
- 金蝶KIS云旗舰版移动系列整体配置和应用方案介绍(20240815直播).pptx