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

test

上级 eddfab5f
......@@ -9,6 +9,7 @@
namespace app\api\controller\v2\common;
use app\em\controller\Account;
use app\em\controller\WriteOff;
use app\em\model\EmInvoice;
use app\em\model\EmPayment;
use app\em\model\EmPaymentFk;
use app\em\model\EmPaymentInvoice;
......@@ -42,7 +43,10 @@ class Payment
$payment = (new EmPayment())->get(['payment_id' => $paymentFk->payment_id]);
//更新账户余额
if($payment->account_id != ''){
(new Account())->computerAmountFromPay($payment->account_id,$payment->amount);
}
$res = (new WriteOff())->writeOffFromPayment($payment->payment_id);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论