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

测试

上级 a2b4be73
...@@ -112,11 +112,10 @@ class Invoice extends Base ...@@ -112,11 +112,10 @@ class Invoice extends Base
//普通读表生成账单 //普通读表生成账单
public function createInvoiceStdType($uData){ public function createInvoiceStdType($uData){
dd($uData);
$inv = new EmInvoice(); $inv = new EmInvoice();
$inv->type = 4; $inv->type = 4;
$inv->rate = $uData['rate']; $inv->rate = $uData['rate'];
$inv->repo_numb = ($uData['current_sum_numb'] - $uData['last_sum_numb']) * $uData['rate']; $inv->repo_numb = round(($uData['current_sum_numb'] - $uData['last_sum_numb']) * $uData['rate'],3);
$inv->payment_amount = $inv->payment_balance = $inv->repo_numb * $uData['pay_price']; $inv->payment_amount = $inv->payment_balance = $inv->repo_numb * $uData['pay_price'];
//结算信息 //结算信息
$inv->settle_amount = $inv->settle_balance = $inv->repo_numb * $uData['settle_price']; $inv->settle_amount = $inv->settle_balance = $inv->repo_numb * $uData['settle_price'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论