Sort clients by name in dropdown list
This commit is contained in:
parent
e1816f8590
commit
5f9a3a9c24
@ -365,7 +365,10 @@ class PageController extends Controller {
|
||||
$produits = json_decode($this->myDb->getListProduit($d->id, $this->idNextcloud));
|
||||
$d->dproduits = $produits;
|
||||
}
|
||||
$clients = json_decode($this->myDb->getClientsAndClientGroupFacturations(includeClientInsideGroup:false));
|
||||
$clients = json_decode($this->myDb->getClientsAndClientGroupFacturations(includeClientInsideGroup:false ));
|
||||
usort($clients, function($a, $b) {
|
||||
return strcmp($a->nom, $b->nom);
|
||||
});
|
||||
return new TemplateResponse('gestion', 'apercustousdevis', array('groups' => $this->groups, 'user' => $this->user, 'path' => $this->idNextcloud,
|
||||
'configuration'=> $this->getConfiguration(),
|
||||
'devis'=> $devis,
|
||||
@ -398,6 +401,9 @@ class PageController extends Controller {
|
||||
$facture->dproduits = $produits;
|
||||
}
|
||||
$clients = json_decode($this->myDb->getClientsAndClientGroupFacturations());
|
||||
usort($clients, function($a, $b) {
|
||||
return strcmp($a->nom, $b->nom);
|
||||
});
|
||||
return new TemplateResponse('gestion', 'apercustoutesfactures', array( 'groups' => $this->groups, 'user' => $this->user, 'path' => $this->idNextcloud,
|
||||
'configuration'=> $this->getConfiguration(),
|
||||
'factures'=> $factures,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user