Don't hide the product row on the stock overview page if there are still child products in stock

This commit is contained in:
Bernd Bestel
2020-08-25 18:15:34 +02:00
parent 4db373b272
commit 0b98504371

View File

@@ -239,7 +239,7 @@ function RefreshProductRow(productId)
productRow.addClass("table-warning"); productRow.addClass("table-warning");
} }
if (result.stock_amount == 0 && result.product.min_stock_amount == 0) if (result.stock_amount == 0 && result.stock_amount_aggregated == 0 && result.product.min_stock_amount == 0)
{ {
animateCSS("#product-" + productId + "-row", "fadeOut", function() animateCSS("#product-" + productId + "-row", "fadeOut", function()
{ {