// 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 |
<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"> |