Przeglądaj źródła

Merge branch 'develop' of https://forge.laclic.fr/Laclic/CaracoleBundle into develop

packProduct
Guillaume 3 lat temu
rodzic
commit
6811dd7bde
2 zmienionych plików z 8 dodań i 0 usunięć
  1. +7
    -0
      Repository/Product/ProductRepositoryQuery.php
  2. +1
    -0
      Repository/Product/ProductStore.php

+ 7
- 0
Repository/Product/ProductRepositoryQuery.php Wyświetl plik

@@ -108,6 +108,13 @@ class ProductRepositoryQuery extends AbstractRepositoryQuery
}


public function filterIsNotAvailableQuantitySupplierUnlimited():self
{
$this->andWhere('productFamily.availableQuantitySupplierUnlimited != 1');
return $this;
}


public function filterAvailableQuantityNegative() :self
{


+ 1
- 0
Repository/Product/ProductStore.php Wyświetl plik

@@ -66,6 +66,7 @@ class ProductStore extends AbstractStore
$query->joinProductFamily();
$query->filterIsOnline();
$query->filterAvailableQuantitySupplierNegative();
$query->filterIsNotAvailableQuantitySupplierUnlimited();
$query->groupBy('productFamily.id');
$productListAvailableQuantityNegative = $query->find();


Ładowanie…
Anuluj
Zapisz