浏览代码

Product : getQuantityTitle

feature/export_comptable
Guillaume 4 年前
父节点
当前提交
bfb57c8816
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      ShopBundle/Model/Product.php

+ 9
- 0
ShopBundle/Model/Product.php 查看文件

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

正在加载...
取消
保存