速达U8 【合同管理】合同结算单不能失效
特价活动:>>>> 畅云管家新购、续费7折优惠,畅捷通T+cloud、好会计、易代账、好业财、好生意云产品8折优惠。
问题描述:
合同结算单不能失效;
处理方法:
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账号,点重新提交