Browse Source

[Administration] Factures > Liste : classement par ordre alphabétique de la colonne 'Utilisateur'

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
6064c069fd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      domain/Document/Invoice/InvoiceSearch.php

+ 2
- 2
domain/Document/Invoice/InvoiceSearch.php View File

@@ -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' => [

Loading…
Cancel
Save