wesmiler 4 дней назад
Родитель
Сommit
d458cff88f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/AccountService.php

+ 1 - 1
app/Services/Common/AccountService.php

@@ -137,7 +137,7 @@ class AccountService extends BaseService
             'total' => $model->sum(DB::raw('abs(money)'))
         ];
 
-        if($accountType==5){
+        if($accountType==5 && $type==11){
             $account = PtAccountModel::where(['mark'=>1])->first();
             $counts['total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
         }