Parcourir la source

[producer] Ordre des points de vente

refactoring
Guillaume il y a 2 ans
Parent
révision
395a00a0b1
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      producer/controllers/OrderController.php
  2. +1
    -1
      producer/controllers/SiteController.php

+ 1
- 1
producer/controllers/OrderController.php Voir le fichier

@@ -956,7 +956,7 @@ class OrderController extends ProducerBaseController
'restricted_access = 0 OR (restricted_access = 1 AND (SELECT COUNT(*) FROM user_point_sale WHERE point_sale.id = user_point_sale.id_point_sale AND user_point_sale.id_user = :id_user) > 0)'
)
->params([':id_user' => User::getCurrentId()])
->orderBy('code ASC, restricted_access ASC, is_bread_box ASC, name ASC')
->orderBy('default DESC, code ASC, restricted_access ASC, is_bread_box ASC, name ASC')
->all();

$creditFunctioningProducer = Producer::getConfig('credit_functioning');

+ 1
- 1
producer/controllers/SiteController.php Voir le fichier

@@ -96,7 +96,7 @@ class SiteController extends ProducerBaseController
->where([
'id_producer' => $this->getProducer()->id,
'restricted_access' => 0
])->orderBy('is_bread_box ASC, name ASC'),
])->orderBy('default DESC, is_bread_box ASC, name ASC'),
'pagination' => [
'pageSize' => 50,
],

Chargement…
Annuler
Enregistrer