18  
泰格付款单翻倍付款
作者: 吴翔宇 于 2021年12月03日 发布在分类 / 软件 / 泰格 / 至尊 下,并于 2021年12月03日 编辑

数据库执行


update x set paid_amt = x.sheet_amt

  from ac_payrec_flow x
 where paid_amt = sheet_amt * 2 and paid_amt > 0


update ac_payrec_flow 
set  paid_amt = (select sum(total_amt) from ac_payrec_record where settle_no = ac_payrec_flow.voucher_no and approve_id = '1')
where sheet_amt < paid_amt 
and pay_date >'2019-01-01'



 推荐知识

 历史版本

修改日期 修改人 备注
2021-12-03 10:20:05[当前版本] 吴翔宇 20211203

慧邦知识分享平台 - free.V4.3.0-439 - 免费版