Pārlūkot izejas kodu

Implémentation OrginProduct

feature/export_comptable
Fab pirms 4 gadiem
vecāks
revīzija
757ac4ab8d
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      ShopBundle/Model/ProductFamily.php

+ 2
- 2
ShopBundle/Model/ProductFamily.php Parādīt failu

@@ -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 ;
}
}

Notiek ielāde…
Atcelt
Saglabāt