Bladeren bron

Product : getQuantityTitle

feature/export_comptable
Guillaume 4 jaren geleden
bovenliggende
commit
bfb57c8816
1 gewijzigde bestanden met toevoegingen van 9 en 0 verwijderingen
  1. +9
    -0
      ShopBundle/Model/Product.php

+ 9
- 0
ShopBundle/Model/Product.php Bestand weergeven

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

Laden…
Annuleren
Opslaan