Various minor usability refinements

This commit is contained in:
Bernd Bestel
2025-01-16 21:34:01 +01:00
parent b0dded1346
commit ded742a7c1
11 changed files with 38 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ SELECT
sc.amount AS amount,
sc.value as value,
sc.product_id AS product_id,
CASE WHEN sc.is_in_stock_or_below_min_stock = 1 THEN sc.best_before_date ELSE '2888-12-31' END AS best_before_date,
IFNULL(sc.best_before_date, '2888-12-31') AS best_before_date,
EXISTS(SELECT id FROM stock_missing_products WHERE id = sc.product_id) AS product_missing,
p.name AS product_name,
pg.name AS product_group_name,