Skip to content

Commit

Permalink
Merge pull request #9445 from jolelievre/BOOM-6229
Browse files Browse the repository at this point in the history
Change out of stock condition with greater or equals
  • Loading branch information
mickaelandrieu committed Aug 13, 2018
2 parents cde25dd + 827ab4b commit 4087ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Presenter/Product/ProductLazyArray.php
Expand Up @@ -718,7 +718,7 @@ public function addQuantityInformation(
}

if ($show_availability) {
if ($product['quantity'] - $product['quantity_wanted'] > 0) {
if ($product['quantity'] - $product['quantity_wanted'] >= 0) {
$this->product['availability_date'] = $product['available_date'];

if ($product['quantity'] < $settings->lastRemainingItems) {
Expand Down

0 comments on commit 4087ce1

Please sign in to comment.