Browse Source

Merge branch 'develop'

master
Guillaume 2 years ago
parent
commit
971e8e3d7f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      Repository/Order/OrderShopRepositoryQuery.php

+ 5
- 3
Repository/Order/OrderShopRepositoryQuery.php View File

parent::__construct($repository, 'orderShop', $paginator); parent::__construct($repository, 'orderShop', $paginator);
} }



public function selectSumStatTotalWithTax(): self public function selectSumStatTotalWithTax(): self
{ {
return $this return $this
); );
} }



public function selectSum(): self public function selectSum(): self
{ {
$this->joinProduct(); $this->joinProduct();
return $this->andWhere('.deliveryDate > :today')->setParameter('today', (new DateTime())->setTime(23, 59)); return $this->andWhere('.deliveryDate > :today')->setParameter('today', (new DateTime())->setTime(23, 59));
} }


public function filterHasOrderProducts()
{
return $this->andWhere('orderShop.orderProducts IS NOT EMPTY');
}

public function selectOrderReductionCarts(): self public function selectOrderReductionCarts(): self
{ {
$this->joinOrderReductionCarts(); $this->joinOrderReductionCarts();
return $this->addSelect('orderReductionCarts'); return $this->addSelect('orderReductionCarts');
} }



public function joinOrderProducts(bool $addSelect = false): self public function joinOrderProducts(bool $addSelect = false): self
{ {
if (!$this->isJoinOrderProducts) { if (!$this->isJoinOrderProducts) {

Loading…
Cancel
Save