add_summ_info

This commit is contained in:
SoHardKI 2019-06-28 12:33:10 +03:00
parent f2c34d595f
commit 2689ce0bed

View File

@ -97,7 +97,6 @@ class BalanceSearch extends Balance
->andFilterWhere(['>=','dt_add', strtotime($this->dt_from) ?: null]) ->andFilterWhere(['>=','dt_add', strtotime($this->dt_from) ?: null])
->andFilterWhere(['<=','dt_add', strtotime($this->dt_to) ?: null]) ->andFilterWhere(['<=','dt_add', strtotime($this->dt_to) ?: null])
->all(); ->all();
// Debug::dd($query);
$active_summ = 0; $active_summ = 0;
$passive_summ = 0; $passive_summ = 0;
$difference = 0; $difference = 0;
@ -111,6 +110,7 @@ class BalanceSearch extends Balance
} }
} }
$difference = $active_summ - $passive_summ; $difference = $active_summ - $passive_summ;
return compact('active_summ', 'passive_summ', 'difference'); return compact('active_summ', 'passive_summ', 'difference');
} }
} }