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

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

上级 78e031d6
...@@ -44,18 +44,18 @@ class EmInvoice extends Base ...@@ -44,18 +44,18 @@ class EmInvoice extends Base
if($item['invoice_id'] == 'ZD2018010100006' ){ if($item['invoice_id'] == 'ZD2018010100006' ){
if($item['payment_balance'] == 0){ if($item['payment_balance'] == 0){
$item['paid_amount'] = 0 ; $item['paid_amount'] = $item['payment_amount'] ;
} else { } else {
$item['paid_amount'] = round($item['payment_amount'] - $item['payment_balance'],3); $item['paid_amount'] = round($item['payment_amount'] - $item['payment_balance'],3);
} }
if($item['settle_balance'] == 0){ if($item['settle_balance'] == 0){
$item['sett_amount'] = 0 ; $item['sett_amount'] = $item['settle_amount'] ;
} else { } else {
$item['sett_amount'] = round($item['settle_amount'] - $item['settle_balance'],3); $item['sett_amount'] = round($item['settle_amount'] - $item['settle_balance'],3);
} }
dd($item);
} }
dd($item);
} }
return $data; return $data;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论