Browse Source

Implémentation OrginProduct

feature/export_comptable
Fab 4 years ago
parent
commit
757ac4ab8d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ShopBundle/Model/ProductFamily.php

+ 2
- 2
ShopBundle/Model/ProductFamily.php View File

@@ -327,7 +327,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
$productsOnlineArray = new ArrayCollection() ;

foreach($products as $product) {
if($product->getStatus() == 1) {
if($product->getStatus() == 1 && $product->getOriginProduct() !=true) {
$productsOnlineArray[] = $product ;
}
}
@@ -797,7 +797,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
$products = $this->getProducts() ;

foreach($products as $product) {
if($product->getStatus() == 1 && $product->getOriginProduct()) {
if($product->getOriginProduct()) {
return $product ;
}
}

Loading…
Cancel
Save