|
@@ -300,7 +300,7 @@ class OrderInv extends BaseController{
|
|
|
}
|
|
|
|
|
|
if($status==7){
|
|
|
- if(!in_array($invinfo['status'],[4,5])) return error_show(1004,"开票申请状态有误");
|
|
|
+ if(!in_array($invinfo['status'],[1,4,5])) return error_show(1004,"开票申请状态有误");
|
|
|
}
|
|
|
$update['status']=$status;
|
|
|
Db::startTrans();
|
|
@@ -482,7 +482,7 @@ class OrderInv extends BaseController{
|
|
|
Db::rollback();
|
|
|
return error_show(1003,"确认单关联信息更新失败");
|
|
|
}
|
|
|
- $report=ReportCode::where(["qrdNo"=>$value['sequenceNo']])->find();
|
|
|
+ $report=ReportCode::where(["qrdNo"=>$value['orderCode']])->find();
|
|
|
if($report)$report->rmField("invNo",$invinfo['invNo']);
|
|
|
}
|
|
|
}
|