上报报表归档后反接收/反审批/打回需校验电子档案归档状态
发布说明
发布版本:EAS8.5
适用范围:上报报表归档
上线日期:2024-8-4
补丁号:PT177501
更多内容
1. 新特性介绍
场景:上报及合并报表归档成功后,用户通过对已归档的报表进行反接收,反审核等操使报表可编辑,会导致系统中的报表与档案系统中的报表不一致
新特性:报表归档后反接收需校验电子档案归档状态
2. 操作指引
1.更新报表补丁:PT177170
2.启用报表参数“是否校验电子档案报表归档状态”
3.在法定合并-报表接收界面反接收/打回报表、法定合并-工作底稿反审批、管理合并-管理报表中心反审批报表需校验电子档案归档状态,电子档案已归档则不能操作反接收/反审批/打回
4.若更新档案补丁PT177501之前已经归档了报表,且需要对已归档的历史数据需要控制,则执行以下脚本:
-- 上报报表 update t_rec_arcrecord outRecord set FReportId = (SELECT top 1 rpt.fid FROM T_CSL_CslReport rpt INNER JOIN t_rpt_template rptTemp ON rpt.FTEMPLATEID = rptTemp.fid INNER JOIN t_rec_arcrecord innerRecord ON innerRecord.FOrgID = rpt.FORGUNITID AND CONCAT(to_char(rpt.FYear), CASE WHEN rpt.FPeriod BETWEEN 1 AND 9 THEN CONCAT('0', to_char(rpt.FPeriod)) ELSE to_char(rpt.FPeriod) END) = innerRecord.FPeriod AND rpt.FCURRENCYID = innerRecord.FCurrency AND rpt.FAuditedStatus = 2 AND (innerRecord.FMergeScheme = rpt.FFastMergeSoluId or (innerRecord.FMergeScheme is null and rpt.FFastMergeSoluId is null)) INNER JOIN T_REC_RecordBase recordBase on recordBase.fid = innerRecord.FContentID INNER JOIN t_rpt_template recordTemp ON recordTemp.fid = recordBase.FPrintTemplate AND recordTemp.FGROUP = rptTemp.FGROUP WHERE innerRecord.FState IN (2, 3, 6) AND innerRecord.FContentType IN ('rptsReport', 'qmsReport', 'otherReport') and innerRecord.fid = outRecord.fid) where outRecord.FReportId is null -- 法定合并表、管理合并表 update t_rec_arcrecord outRecord set FReportId = (SELECT top 1 rpt.fid FROM T_CSL_CslReport rpt INNER JOIN t_rpt_template rptTemp ON rpt.FTEMPLATEID = rptTemp.fid INNER join T_ORG_Structure struct on struct.FUnitId = rpt.FORGUNITID INNER JOIN t_rec_arcrecord innerRecord ON struct.Fid = innerRecord.FMergeUnitGroup AND CONCAT(to_char(rpt.FYear), CASE WHEN rpt.FPeriod BETWEEN 1 AND 9 THEN CONCAT('0', to_char(rpt.FPeriod)) ELSE to_char(rpt.FPeriod) END) = innerRecord.FPeriod AND rpt.FCURRENCYID = innerRecord.FCurrency AND rpt.FAuditedStatus = 2 AND (innerRecord.FMergeScheme = rpt.FFastMergeSoluId or (innerRecord.FMergeScheme is null and rpt.FFastMergeSoluId is null)) INNER JOIN T_REC_RecordBase recordBase on recordBase.fid = innerRecord.FContentID INNER JOIN t_rpt_template recordTemp ON recordTemp.fid = recordBase.FPrintTemplate AND recordTemp.FGROUP = rptTemp.FGROUP WHERE innerRecord.FState IN (2, 3, 6) AND innerRecord.FContentType IN ('rptsReport', 'qmsReport', 'otherReport') and innerRecord.fid = outRecord.fid) where outRecord.FReportId is null
上报报表归档后反接收/反审批/打回需校验电子档案归档状态
发布说明发布版本:EAS8.5适用范围:上报报表归档上线日期:2024-8-4补丁号:PT177501 更多内容 ...
点击下载文档
上一篇:共享审批提交报错:已提交单据不能保存下一篇:常见问题-应付发票归档失败
本文2024-09-22 19:18:53发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-106413.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章