提交 65d87f69 authored 作者: chengye's avatar chengye

修复缴费单实缴金额显示错误

上级 45ca3744
......@@ -284,6 +284,13 @@ class Payment extends Base
//实缴金额
$amount = EmCert::where('payment_id','=',$payment_id)->sum('amount');
if($payment->mark){
if($payment->balance == 0){
$amount = $payment->amount;
} else {
$amount = $payment->amount - $payment->balance;
}
}
$this->assign('payment_sum_amount',$amount);
//查询凭证信息
$receipts = (new EmPaymentReceipt)->getPaymentReceiptByPaymentId($payment_id);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论