|
|
|
|
|
|
|
|
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) { |