Skip to content

Commit

Permalink
ENGCOM-3832: 9130 remove the negative qty block. #20206
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Jan 21, 2019
2 parents 0d2f227 + 4826284 commit 59647fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public function getPlaceholderId()
*/
public function isMsgVisible()
{
return $this->getStockQty() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
return $this->getStockQty() > 0 && $this->getStockQtyLeft() > 0
&& $this->getStockQtyLeft() <= $this->getThresholdQty();
}

/**
Expand Down

0 comments on commit 59647fe

Please sign in to comment.