24  
泰格付款单已审核,被删除,重新改成未付款
作者: 吴翔宇 于 2021年12月03日 发布在分类 / 软件 / 泰格 / 至尊 下,并于 2021年12月03日 编辑

查询删除付款单中的入库单
select voucher_no
  from ac_payrec_flow a
  left join ac_payrec_record b on b.settle_no = a.voucher_no
 where b.settle_no is null
   and a.pay_date > '2019-01-01'
   and a.sheet_amt = a.paid_amt
  

修改单据状态
update a set paid_amt = 0
  from ac_payrec_flow a
  left join ac_payrec_record b on b.settle_no = a.voucher_no
 where b.settle_no is null
   and a.pay_date > '2019-01-01'
   and a.sheet_amt = a.paid_amt




 推荐知识

 历史版本

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

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