add frontend changes
This commit is contained in:
@@ -37,7 +37,7 @@ class TransferSearch extends Transfer
|
||||
return [
|
||||
[[ 'id_account','id_user', 'type'], 'integer'],
|
||||
// [[ 'searchObjectName' ], 'string'],
|
||||
[[ 'start', ], 'date' , 'timestampAttribute' => 'timestampStart' ,'timestampAttributeFormat' => 'yyyy-MM-dd' ],
|
||||
[[ 'start', ], 'date' , 'timestampAttribute' => 'timestampStart' ,'timestampAttributeFormat' => 'yyyy-MM-dd' ],
|
||||
[[ 'end' , ], 'date' , 'timestampAttribute' => 'timestampEnd' ,'timestampAttributeFormat' => 'yyyy-MM-dd' ],
|
||||
];
|
||||
}
|
||||
@@ -92,8 +92,8 @@ class TransferSearch extends Transfer
|
||||
'transfer.id_user' => $this->id_user,
|
||||
]);
|
||||
|
||||
$query->andFilterWhere([ '>=', 'transfer.created_at', $this->timestampStart ] );
|
||||
$query->andFilterWhere([ '<', 'transfer.created_at', $this->timestampEnd ] );
|
||||
$query->andFilterWhere([ '>=', 'transfer.created_at' , $this->timestampStart ] );
|
||||
$query->andFilterWhere([ '<' , 'transfer.created_at' , $this->timestampEnd ] );
|
||||
|
||||
// if ( isset($this->searchObjectName))
|
||||
// $query->andWhere( new Expression(" case when transfer.type = " .self::TYPE_PRODUCT ." then product.name else ticket_type.name end like '%" . $this->searchObjectName ."%'"));
|
||||
|
||||
Reference in New Issue
Block a user