diff --git a/backend/modules/balance/models/BalanceSearch.php b/backend/modules/balance/models/BalanceSearch.php index 6db036c..6a93ca1 100644 --- a/backend/modules/balance/models/BalanceSearch.php +++ b/backend/modules/balance/models/BalanceSearch.php @@ -97,7 +97,6 @@ class BalanceSearch extends Balance ->andFilterWhere(['>=','dt_add', strtotime($this->dt_from) ?: null]) ->andFilterWhere(['<=','dt_add', strtotime($this->dt_to) ?: null]) ->all(); -// Debug::dd($query); $active_summ = 0; $passive_summ = 0; $difference = 0; @@ -111,6 +110,7 @@ class BalanceSearch extends Balance } } $difference = $active_summ - $passive_summ; + return compact('active_summ', 'passive_summ', 'difference'); } }