From 2689ce0bed7b453640e848e4eb4edac184d0b3bf Mon Sep 17 00:00:00 2001 From: SoHardKI Date: Fri, 28 Jun 2019 12:33:10 +0300 Subject: [PATCH] add_summ_info --- backend/modules/balance/models/BalanceSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }