浏览代码

Merge branch 'develop' of https://forge.laclic.fr/Laclic/CaracoleBundle into develop

master
Guillaume 3 年前
父节点
当前提交
550492d6a6
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. +1
    -1
      Solver/Config/UnitSolver.php
  2. +8
    -0
      Solver/Order/OrderShopSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php 查看文件

@@ -13,7 +13,7 @@ class UnitSolver
if($quantity) {
return ($quantityProduct / $unit->getCoefficient()) * $quantity;
}else{
$quantity = 0;
return 0;
}
}


+ 8
- 0
Solver/Order/OrderShopSolver.php 查看文件

@@ -345,6 +345,14 @@ class OrderShopSolver
return false;
}

public function isDone(OrderShopInterface $orderShop): bool
{
if ($orderShop->getOrderStatus() && $orderShop->getOrderStatus()->getAlias() == OrderStatusModel::ALIAS_DONE ) {
return true;
}
return false;
}

// getProductQuantityMaxAddCart
public function getProductQuantityMaxAddCart(OrderShopInterface $orderShop, ProductInterface $product)
{

正在加载...
取消
保存