提交 ba23f815 authored 作者: chengye's avatar chengye

修复合并账单 缴费金额显示的bug

上级 8fdf2b25
......@@ -269,7 +269,7 @@ class Invoice extends Base
$settle_amount = 0;
foreach ($data as $v){
$v->settle_amount = $v->settle_amount ?:0;
$v->payment_amount = is_numeric($v->payment_amount) ?: (float)$v->payment_amount;
$v->payment_amount = is_numeric($v->payment_amount) ? $v->payment_amount : (float)$v->payment_amount;
$payment_amount += $v->payment_amount;
$settle_amount += $v->settle_amount;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论