add backend transfer/index customerName

This commit is contained in:
Roland Schneider 2016-03-01 22:16:40 +01:00
parent b2c1cc0a6d
commit cb4a639c96
2 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class TransferSearch extends Transfer
$query->innerJoinWith('account');
$query->innerJoin('user', " user.id = transfer.id_user");
$query->leftJoin('customer', " transfer.id_customer = customer.id_customer");
if ( !RoleDefinition::isAdmin() ){
@ -118,6 +119,10 @@ class TransferSearch extends Transfer
'asc' => ['user.username' => SORT_ASC ],
'desc' => ['user.username' => SORT_DESC],
],
'id_customer' =>[
'asc' => ['customer.name' => SORT_ASC ],
'desc' => ['customer.name' => SORT_DESC],
],
]
]
]);

View File

@ -64,6 +64,11 @@ $this->params['breadcrumbs'][] = $this->title;
'value' => 'paidByName' ,
'label' => 'Fizette'
],
[
'attribute' => 'id_customer',
'value' => 'customerName' ,
'label' => 'Vendég'
],
[
'attribute' => 'id_account',
'value' => 'accountName'