Browse Source

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

packProduct
Guillaume 3 years ago
parent
commit
6811dd7bde
2 changed files with 8 additions and 0 deletions
  1. +7
    -0
      Repository/Product/ProductRepositoryQuery.php
  2. +1
    -0
      Repository/Product/ProductStore.php

+ 7
- 0
Repository/Product/ProductRepositoryQuery.php View File

} }




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


public function filterAvailableQuantityNegative() :self public function filterAvailableQuantityNegative() :self
{ {



+ 1
- 0
Repository/Product/ProductStore.php View File

$query->joinProductFamily(); $query->joinProductFamily();
$query->filterIsOnline(); $query->filterIsOnline();
$query->filterAvailableQuantitySupplierNegative(); $query->filterAvailableQuantitySupplierNegative();
$query->filterIsNotAvailableQuantitySupplierUnlimited();
$query->groupBy('productFamily.id'); $query->groupBy('productFamily.id');
$productListAvailableQuantityNegative = $query->find(); $productListAvailableQuantityNegative = $query->find();



Loading…
Cancel
Save