提交 1486eb36 authored 作者: chengye's avatar chengye

test

上级 671f7b5d
......@@ -39,9 +39,12 @@ class Payment
$paymentFk = (new EmPaymentFk())->get(['oafk_numb' => $numb]);
$payment = (new EmPayment())->get(['payment_id' => $paymentFk->payment_id]);
$account = EmAccount::get(['account_id'=>$payment->account_id]);
$account->amount += $payment->amount ;
$account->save();
if($payment->payment_type == 2){
$account = EmAccount::get(['account_id'=>$payment->account_id]);
$account->amount += $payment->amount ;
$account->save();
}
$payment->status = $status;
$payment->pay_date = time();
......
......@@ -161,7 +161,6 @@ class WriteOff extends Controller
$inv->payment_balance = $inv->payment_balance - $payment->balance;
//缴费额度变化
$payment->balance = 0;
$dk_balance = $inv->payment_balance;
}
......@@ -189,7 +188,6 @@ class WriteOff extends Controller
}
protected function computerAmount($account_id,$balance){
dd($balance);
//更新账户余额
$account = EmAccount::get(['account_id'=>$account_id]);
$account->amount -= $balance;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论