Browse Source

[Administration] Utilisateurs > Commandes : ajout filtre par producteur

develop
Guillaume Bourgeois 3 weeks ago
parent
commit
460c6c648d
2 changed files with 1 additions and 1 deletions
  1. +1
    -0
      backend/controllers/admin/OrderAdminController.php
  2. +0
    -1
      domain/Order/Order/OrderSearch.php

+ 1
- 0
backend/controllers/admin/OrderAdminController.php View File

{ {
$searchModel = new OrderSearch(); $searchModel = new OrderSearch();
$dataProvider = $searchModel->search([ $dataProvider = $searchModel->search([
'ignore_id_producer' => true,
'order_by' => 'IF(ISNULL(date_update), `order`.`date`, `order`.`date_update`) DESC' 'order_by' => 'IF(ISNULL(date_update), `order`.`date`, `order`.`date_update`) DESC'
]); ]);



+ 0
- 1
domain/Order/Order/OrderSearch.php View File

} }


$query = Order::searchQuery($paramsSearch, [ $query = Order::searchQuery($paramsSearch, [
'ignore_id_producer' => true,
'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC' 'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC'
]); ]);

Loading…
Cancel
Save