提交 574d1529 authored 作者: chengye's avatar chengye

test

上级 3a30b21c
......@@ -439,16 +439,16 @@ class Payment extends Base
foreach ($invs as $k => $inv){
$details[$k]['chargeType'] = "维护电费";
if($inv->payment_balance == 0){
$details[$k]['amount'] = 0;
$details[$k]['charge_amount'] = 0;
} else if($inv->payment_amount == $inv->payment_balance){
$details[$k]['amount'] = $inv->payment_amount;
$details[$k]['charge_amount'] = $inv->payment_amount;
} else {
$details[$k]['amount'] = $inv->payment_amount - $inv->payment_balance;
$details[$k]['charge_amount'] = $inv->payment_amount - $inv->payment_balance;
}
$details[$k]['projectNumber'] = $this->getDetailsFields($inv->account_id);
$details[$k]['contractNumber'] = $this->getDetailsFields($inv->account_id,true);
$details[$k]['cbzx_code'] = $this->getDetailsFields($inv->account_id);
$details[$k]['contract_id'] = $this->getDetailsFields($inv->account_id,true);
$details[$k]['receipt'] = '';
$details[$k]['receipt_id'] = '';
}
$data = [
......@@ -490,7 +490,6 @@ class Payment extends Base
}
}
}
dd($data);
$res = $this->createFkNumb($data);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论