Browse Source

[backend] Commandes triées par ordre alphabétique

dev
Guillaume Bourgeois 5 years ago
parent
commit
6e4f4005b5
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      backend/controllers/DistributionController.php
  2. +1
    -1
      backend/views/distribution/index.php

+ 2
- 0
backend/controllers/DistributionController.php View File

// commandes // commandes
$ordersArray = Order::searchAll([ $ordersArray = Order::searchAll([
'distribution.date' => $date, 'distribution.date' => $date,
],[
'orderby' => 'user.lastname ASC, user.name ASC'
]); ]);
// montant et poids des commandes // montant et poids des commandes

+ 1
- 1
backend/views/distribution/index.php View File

<label class="label label-warning" v-else>admin</label> <label class="label label-warning" v-else>admin</label>
</td> </td>
<td> <td>
<span v-if="order.user">{{ order.user.name +' '+order.user.lastname }}</span>
<span v-if="order.user">{{ order.user.lastname+' '+order.user.name }}</span>
<span v-else>{{ order.username }}</span> <span v-else>{{ order.username }}</span>
</td> </td>
<td v-if="idActivePointSale == 0"> <td v-if="idActivePointSale == 0">

Loading…
Cancel
Save