Browse Source

OrderUtils : isOrderProductAvailable

feature/export_comptable
Guillaume 4 years ago
parent
commit
5b5a0d991d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      ShopBundle/Services/Order/OrderUtils.php

+ 5
- 0
ShopBundle/Services/Order/OrderUtils.php View File

@@ -540,6 +540,11 @@ class OrderUtils
return false ;
}

public function isOrderProductAvailable(OrderProductInterface $orderProduct)
{
return $this->isProductAvailable($orderProduct->getProduct(), $orderProduct->getQuantityOrder()) ;
}

public function isOrderProductAvailableAddCart(OrderProductInterface $orderProduct, $orderShop = null)
{
$product = $orderProduct->getProduct() ;

Loading…
Cancel
Save