瀏覽代碼

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

Loading…
取消
儲存