Ver código fonte

OrderUtils : isOrderProductAvailable

feature/export_comptable
Guillaume 4 anos atrás
pai
commit
5b5a0d991d
1 arquivos alterados com 5 adições e 0 exclusões
  1. +5
    -0
      ShopBundle/Services/Order/OrderUtils.php

+ 5
- 0
ShopBundle/Services/Order/OrderUtils.php Ver arquivo

@@ -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() ;

Carregando…
Cancelar
Salvar