Explorar el Código

weekId error

feature/export_comptable
Fab hace 4 años
padre
commit
c899e4eca7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 1
ShopBundle/Repository/OrderShopRepository.php Ver fichero

@@ -255,7 +255,7 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->orderBy('e.weekId', 'DESC');
$query->orderBy('e.idValidOrder', 'DESC');
$query->setMaxResults(1);

return $query->getQuery()->getOneOrNullResult();

Cargando…
Cancelar
Guardar