Explorar el Código

Ajout de champ commandes

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

+ 13
- 0
ShopBundle/Repository/OrderShopRepository.php Ver fichero

@@ -250,6 +250,19 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt

}

public function findLastOrderValid()
{
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.mainOrderShop = false OR e.mainOrderShop IS NULL');
$query->orderBy('e.validationDate', 'DESC');
$query->setMaxResults(1);

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

}


public function countValidOrderProductsOfWeekByProduct($weekNumber, $productId)
{
$query = $this->findByMerchantQuery();

Cargando…
Cancelar
Guardar