Переглянути джерело

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

refactoring
Guillaume Bourgeois 5 роки тому
джерело
коміт
6e4f4005b5
2 змінених файлів з 3 додано та 1 видалено
  1. +2
    -0
      backend/controllers/DistributionController.php
  2. +1
    -1
      backend/views/distribution/index.php

+ 2
- 0
backend/controllers/DistributionController.php Переглянути файл

@@ -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

+ 1
- 1
backend/views/distribution/index.php Переглянути файл

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

Завантаження…
Відмінити
Зберегти