Commit 899fd130 authored by hujun's avatar hujun

调整修改判断

parent 52fa73ca
......@@ -2912,12 +2912,22 @@ class Finance extends Basic
$code = 200;
try {
$m_pay = new OPayLogModel();
$id = $m_pay->selectReceiptImgList('id', ['id'=>$this->params['pay_id']]);
$id = $m_pay->selectReceiptImgList('id,source', ['id'=>$this->params['pay_id']]);
if (empty($id[0]['id'])) {
return $this->response(101, '没有该记录');
}
if (empty($id[0]['source']) == 2) {
return $this->response(101, '调整后收款不能修改');
}
$m_pay_log = new OPayLogAdjustment();
$id = $m_pay_log->getFieldValue('id', ['paylog_id']);
if ($id) {
return $this->response(101, '收款存在调整不能修改');
}
$save_data['id'] = $this->params['pay_id'];
$save_data['income_time'] = $this->params['income_time'];
$save_data['real_money'] = $this->params['real_money'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment