mirror of
https://github.com/grocy/grocy.git
synced 2025-10-23 04:48:06 +00:00
Make the quick consume buttons on the stock overview page configurable per product (closes #613)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user