Skip to content

Commit

Permalink
ENGCOM-3462: If stock is bellow OutOfStock Threshold, a negative qty …
Browse files Browse the repository at this point in the history
…is displayed in Product List Page #19206
  • Loading branch information
sidolov authored Dec 6, 2018
2 parents 71e7b2f + 5420935 commit 6ecd4fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ 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 6ecd4fc

Please sign in to comment.