瀏覽代碼

Merge branch 'develop' of https://gitea.laclic.fr/Placedulocal/Symfony into develop

# Conflicts:
#	Lc
feature/module_traiteur_v1
Guillaume 4 年之前
父節點
當前提交
52115b3602
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 7
- 1
ShopBundle/Services/Order/OrderUtilsStockTrait.php 查看文件

@@ -66,7 +66,13 @@ trait OrderUtilsStockTrait

$allCategoriesSalesOff = true;
foreach ($product->getProductFamily()->getProductCategories() as $category){
if($category->getSaleStatus())$allCategoriesSalesOff = false;
if($category->getParent()) {
if($category->getSaleStatus() && $category->getParent()->getSaleStatus())
$allCategoriesSalesOff = false;
}
else {
if($category->getSaleStatus()) $allCategoriesSalesOff = false;
}
}
if($allCategoriesSalesOff) return false;


Loading…
取消
儲存