add frontend collection
This commit is contained in:
@@ -13,10 +13,13 @@ use common\models\Collection;
|
||||
class CollectionSearch extends Collection
|
||||
{
|
||||
public $accounts;
|
||||
public $accountMap;
|
||||
|
||||
public $timestampStart;
|
||||
public $timestampEnd;
|
||||
|
||||
public $totals;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
@@ -69,4 +72,8 @@ class CollectionSearch extends Collection
|
||||
|
||||
return $dataProvider;
|
||||
}
|
||||
|
||||
public function searchTotal(){
|
||||
$this->totals = Collection::mkReceptionTotal($this->timestampStart, $this->timestampEnd , Yii::$app->user->id, [Collection::TYPE_RECEPTION], $this->id_account, $this->accounts, $this->accountMap);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user