add frontend collection

This commit is contained in:
2015-11-04 12:33:45 +01:00
parent ed9c1e77cd
commit 48a00e4bdc
17 changed files with 370 additions and 194 deletions

View File

@@ -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);
}
}