Make the quick consume buttons on the stock overview page configurable per product (closes #613)

This commit is contained in:
Bernd Bestel
2020-11-15 09:57:45 +01:00
parent 17ae7e3d0c
commit 1d1642b464
9 changed files with 54 additions and 14 deletions

View File

@@ -22,7 +22,8 @@ SELECT
sc.amount_aggregated,
p.calories AS product_calories,
sc.amount * p.calories AS calories,
sc.amount_aggregated * p.calories AS calories_aggregated
sc.amount_aggregated * p.calories AS calories_aggregated,
p.quick_consume_amount
FROM (
SELECT *
FROM stock_current
@@ -59,7 +60,8 @@ SELECT
sc.amount_aggregated,
p.calories AS product_calories,
sc.amount * p.calories AS calories,
sc.amount_aggregated * p.calories AS calories_aggregated
sc.amount_aggregated * p.calories AS calories_aggregated,
p.quick_consume_amount
FROM (
SELECT *
FROM stock_current