提交 0fe03b98 authored 作者: chengye's avatar chengye

修复账单缴费余额与结算余额错误

上级 80bcf5bc
...@@ -40,21 +40,18 @@ class EmInvoice extends Base ...@@ -40,21 +40,18 @@ class EmInvoice extends Base
->page($Nowpage, $limits) ->page($Nowpage, $limits)
->select() ->select()
->toarray(); ->toarray();
// foreach ($data as &$item){ foreach ($data as &$item){
// echo number_format($item['payment_amount']); if($item['payment_balance'] == 0){
// if(number_format($item['payment_balance']) == 0){ $item['paid_amount'] = 0 ;
// $item['paid_amount'] = 0 ; } else {
// } else { $item['paid_amount'] = round($item['payment_amount'] - $item['payment_balance'],3);
// $item['paid_amount'] = number_format($item['payment_amount']) - number_format($item['payment_balance']); }
// } if($item['settle_balance'] == 0){
// if(number_format($item['settle_balance']) == 0){ $item['sett_amount'] = 0 ;
// $item['sett_amount'] = 0 ; } else {
// } else { $item['sett_amount'] = round($item['settle_amount'] - $item['settle_balance'],3);
// $item['sett_amount'] = number_format($item['settle_amount']) - number_format($item['settle_balance']); }
// } }
// }
echo round('123123.12312'-'123100.34534',3);
die;
return $data; return $data;
} }
public function getInvoiceCount($map){ public function getInvoiceCount($map){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论