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

test

上级 d34c532f
...@@ -181,9 +181,9 @@ class Invoice extends Base ...@@ -181,9 +181,9 @@ class Invoice extends Base
//更新电表账户 //更新电表账户
$useage = \app\em\model\Useage::get(['useage_id' => $uData['useage_id']]); $useage = \app\em\model\Useage::get(['useage_id' => $uData['useage_id']]);
$account = new Account(); if($uData['em_type_id'] == 2 || $uData['em_type_id'] == 4){
$pay_amount = 0 - $inv->payment_amount; (new Account())->computerAmountFromInv($useage->em_id,$inv->payment_amount,$inv->invoice_id);
$account->computerAmount($useage->em_id,$pay_amount); }
return $inv; return $inv;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论