Преглед изворни кода

Correctif purchaseOrder

packProduct
Fabien Normand пре 2 година
родитељ
комит
628898f4b4
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 Прегледај датотеку

@@ -341,6 +341,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)
{

Loading…
Откажи
Сачувај