Optimized/clarified new "Hide product from stock overview" option (references #906)

This commit is contained in:
Bernd Bestel
2020-12-21 20:43:10 +01:00
parent 694b78f72a
commit c1ac9e8a45
6 changed files with 27 additions and 20 deletions

View File

@@ -44,7 +44,7 @@ LEFT JOIN products_last_purchased plp
ON sc.product_id = plp.product_id
LEFT JOIN products p
ON sc.product_id = p.id
WHERE p.show_on_stock_overview = 1;
WHERE p.hide_on_stock_overview = 0;
DROP VIEW uihelper_stock_current_overview;
CREATE VIEW uihelper_stock_current_overview
@@ -92,4 +92,4 @@ LEFT JOIN products_last_purchased plp
ON sc.product_id = plp.product_id
LEFT JOIN products p
ON sc.product_id = p.id
WHERE p.show_on_stock_overview = 1;
WHERE p.hide_on_stock_overview = 0;