@@ -97,6 +97,8 @@ class DistributionController extends BackendController | |||
// commandes | |||
$ordersArray = Order::searchAll([ | |||
'distribution.date' => $date, | |||
],[ | |||
'orderby' => 'user.lastname ASC, user.name ASC' | |||
]); | |||
// montant et poids des commandes |
@@ -236,7 +236,7 @@ $this->setPageTitle('Distributions') ; | |||
<label class="label label-warning" v-else>admin</label> | |||
</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> | |||
</td> | |||
<td v-if="idActivePointSale == 0"> |