|
|
@@ -70,8 +70,8 @@ class InvoiceSearch extends Invoice |
|
|
|
'name', |
|
|
|
'date', |
|
|
|
'username' => [ |
|
|
|
'asc' => ['user_invoice.lastname' => SORT_ASC, 'user_invoice.name' => SORT_ASC], |
|
|
|
'desc' => ['user_invoice.lastname' => SORT_DESC, 'user_invoice.name' => SORT_DESC], |
|
|
|
'asc' => ['IF(ISNULL(user_invoice.name_legal_person), user_invoice.lastname, user_invoice.name_legal_person)' => SORT_ASC], |
|
|
|
'desc' => ['IF(ISNULL(user_invoice.name_legal_person), user_invoice.lastname, user_invoice.name_legal_person)' => SORT_DESC], |
|
|
|
] |
|
|
|
], |
|
|
|
'defaultOrder' => [ |