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