Sfoglia il codice sorgente

Produit stock negatif

feature/export_comptable
Fab 4 anni fa
parent
commit
341b322d6b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      ShopBundle/Repository/ProductRepository.php

+ 1
- 0
ShopBundle/Repository/ProductRepository.php Vedi File

@@ -26,6 +26,7 @@ class ProductRepository extends BaseRepository implements DefaultRepositoryInter
$qb->innerJoin('e.productFamily', 'productFamily');
$qb->addSelect('productFamily');
$qb->where('productFamily.merchant = :currentMerchant');
$qb->andWhere('productFamily.status = 1');
$qb->setParameter('currentMerchant', $this->merchantUtils->getMerchantCurrent()->getId());

$qb->andWhere(

Loading…
Annulla
Salva