wesmiler 6 päivää sitten
vanhempi
commit
d458cff88f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
         }