Ver código fonte

[Frontend] Correctif originProduct

feature/export_comptable
Guillaume 4 anos atrás
pai
commit
3b82c5ca18
1 arquivos alterados com 10 adições e 0 exclusões
  1. +10
    -0
      ShopBundle/Model/ProductFamily.php

+ 10
- 0
ShopBundle/Model/ProductFamily.php Ver arquivo

@@ -813,4 +813,14 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
return false;
}
}

public function hasOneProductOnline()
{
if( ($this->getActiveProducts() && count($this->getProductsOnline()) > 0)
|| (!$this->getActiveProducts() && $this->getOriginProduct())){
return true ;
}

return false ;
}
}

Carregando…
Cancelar
Salvar