add backend transfer/index customerName

This commit is contained in:
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],
],
]
]
]);