|
@@ -467,7 +467,7 @@ class Payment extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 对账付款状态审核 status 0 待提交 1 待买方审核 2 审核成功 3驳回 4 退款
|
|
|
+ * 对账付款状态审核 status 0 待提交 1 待买方审核 2 审核成功 3驳回 4 对账单撤销,释放采购单数据
|
|
|
* @param \think\Request $request
|
|
|
* @return \think\Response
|
|
|
*/
|
|
@@ -501,13 +501,12 @@ class Payment extends BaseController
|
|
|
$result = Db::name("pay")->where("payNo","=",$payNo)->update($update);
|
|
|
if($result){
|
|
|
|
|
|
- if($status==3){
|
|
|
+ if($status==3 || $status==4){
|
|
|
$cgdup =Db::name("cgd_info")->where(["sequenceNo"=>$cgdNo,"status"=>1])->update(['status'=>0,"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
if($cgdup==false){
|
|
|
Db::rollback();
|
|
|
return error_show(1004,"对账驳回失败");
|
|
|
}
|
|
|
-
|
|
|
foreach ($cgdNo as $value){
|
|
|
$report=ReportCode::where(["cgdNo"=>$value])->find();
|
|
|
if($report)$report->rmField("payNo",$payNo);
|