用友U8 |【合同管理】合同结算单不能失效

问题描述:

合同结算单不能失效;

处理方法:

 select iverifystate ,cCurrentAuditor,cAuditer,dtAuditedate,* from CM_Balance  where  cBalanceID='0000003197'   --查找结算单主表信息

update CM_Balance set cAuditer=''   where  cBalanceID='0000003089'   --取消生效人
update CM_Balance set dtAuditedate =null  where  cBalanceID='0000003089'  --取消生效日期

update CM_Balance set cAdmin=null,dtAdminDate=null where cBalanceID='0000003089' 
update CM_Balance set cCurrentAuditor=null where cBalanceID='0000003089' 

思路:

--先查询cCurrentAuditor是否正确,【最终审核人C】审核后,这个字段应该是null
--如果有C的名字,执行update CM_Balance set cCurrentAuditor=null where cBalanceID='0000003089' 
---再执行  update CM_Balance set cAuditer=''   where  cBalanceID='0000003089'   --取消生效人
--update CM_Balance set dtAuditedate =null  where  cBalanceID='0000003089'  --取消生效日期
--然后用C账号,点重新提交

posted @ 2021-07-23 10:16  优秀的进度条  阅读(198)  评论(0编辑  收藏  举报