Skip to content

Commit

Permalink
[*] MO - powatag : minimal quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
tbigueres committed Nov 20, 2014
1 parent d04581e commit 5cbe6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/classes/PowaTagOrders.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ private function addProductsToCart($cart, $codeCountry)

return false;
}
if($p->quantity < $product->minimal_quantity || ($combination && $combination->minimal_quantity > $product->minimal_quantity))
if($p->quantity < $product->minimal_quantity || ($combination && $combination->minimal_quantity > $p->quantity))
{
$this->addError(sprintf($this->module->l('Quantity < minimal quantity for product')), PowaTagAbstract::$NOT_IN_STOCK);

Expand Down

0 comments on commit 5cbe6f8

Please sign in to comment.