Explorar el Código

Product : getQuantityTitle

feature/export_comptable
Guillaume hace 4 años
padre
commit
bfb57c8816
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      ShopBundle/Model/Product.php

+ 9
- 0
ShopBundle/Model/Product.php Ver fichero

@@ -108,6 +108,15 @@ abstract class Product extends AbstractEntity implements SortableInterface, Prod
return $quantity.$unit->getWordingShort() ;
}

public function getQuantityTitle($productFamily)
{
$title = $this->getQuantityLabelInherited() ;
if($productFamily->hasProductsWithVariousWeight()) {
$title .= ', '.$this->getTitleInherited() ;
}
return $title ;
}

public function getAvailableQuantityInherited()
{
if($this->getProductFamily()->getBehaviorCountStock()) {

Cargando…
Cancelar
Guardar