Bläddra i källkod

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

master
Guillaume 3 år sedan
förälder
incheckning
550492d6a6
2 ändrade filer med 9 tillägg och 1 borttagningar
  1. +1
    -1
      Solver/Config/UnitSolver.php
  2. +8
    -0
      Solver/Order/OrderShopSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php Visa fil

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


+ 8
- 0
Solver/Order/OrderShopSolver.php Visa fil

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

Laddar…
Avbryt
Spara