Pārlūkot izejas kodu

Product : getQuantityTitle

feature/export_comptable
Guillaume pirms 4 gadiem
vecāks
revīzija
bfb57c8816
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      ShopBundle/Model/Product.php

+ 9
- 0
ShopBundle/Model/Product.php Parādīt failu

@@ -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()) {

Notiek ielāde…
Atcelt
Saglabāt