} | } | ||||
public function filterIsNotAvailableQuantitySupplierUnlimited():self | |||||
{ | |||||
$this->andWhere('productFamily.availableQuantitySupplierUnlimited != 1'); | |||||
return $this; | |||||
} | |||||
public function filterAvailableQuantityNegative() :self | public function filterAvailableQuantityNegative() :self | ||||
{ | { | ||||
$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(); | ||||