Skip to content

Commit

Permalink
Limited extra sort options in Bills
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid authored and hiqsol committed Jul 19, 2019
1 parent 4996f53 commit 4d15b08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/bill/index.php
Expand Up @@ -39,11 +39,12 @@

<?php $page->beginContent('sorter-actions') ?>
<?= $page->renderSorter([
'attributes' => [
'seller', 'client',
'attributes' => array_filter([
'sum', 'balance',
'type', 'descr',
],
Yii::$app->user->can('resell') ? 'client' : null,
Yii::$app->user->can('support') ? 'seller' : null
]),
]) ?>
<?php $page->endContent() ?>

Expand Down

0 comments on commit 4d15b08

Please sign in to comment.