关于凭证往来核销异常情况排查方法之一
--没有核销过,核销记录的未核销金额不等于原币金额
drop table his_tmp;
SELECT distinct FVOUCHERASSTIDID vsid into his_tmp FROM t_gl_acctcussenthistory where FDC <> 1 and fcompanyid='替换为公司ID'; --需要确保fdc=3的数据是成对的
SELECT * FROM t_gl_acctverify where not exists(
select 1 from his_tmp h where h.vsid = FVCHASSISTRECORDID
) and FUNVERIFIEDAMTFOR <> FORIGINALAMOUNT and fcompanyid='替换为公司ID';
update t_gl_acctverify set FUNVERIFIEDAMTFOR = FORIGINALAMOUNT, FUNVERIFIEDQTY = FQUANTITY where not exists(
select 1 from his_tmp h where h.vsid = FVCHASSISTRECORDID
) and FUNVERIFIEDAMTFOR <> FORIGINALAMOUNT and fcompanyid='替换为公司ID';
--没有核销过,挂账记录的未核销金额不等于原币金额
drop table his_tmp;
SELECT distinct FCUSSENTIDID vsid into his_tmp FROM t_gl_acctcussenthistory where FDC <> 3 and fcompanyid='替换为公司ID'; --需要确保fdc=1的数据是成对的
SELECT * FROM T_GL_ACCTCUSSENT where not exists(
select 1 from his_tmp h where h.vsid = fid
) and FUNVERIFIEDAMTFOR <> FORIGINALAMOUNT and fcompanyid='替换为公司ID';
update T_GL_ACCTCUSSENT set FUNVERIFIEDAMTFOR = FORIGINALAMOUNT, FUNVERIFIEDQTY = isnull(FQUANTITY,0) where not exists(
select 1 from his_tmp h where h.vsid = fid
) and FUNVERIFIEDAMTFOR <> FORIGINALAMOUNT and fcompanyid='替换为公司ID';
关于凭证往来核销异常情况排查方法之一
--没有核销过,核销记录的未核销金额不等于原币金额drop table his_tmp;SELECT distinct FVOUCHERASSTIDID vsid into his_tmp FR...
点击下载文档
本文2024-09-16 22:24:03发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-47892.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章