mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Typo...
This commit is contained in:
parent
832d83dfde
commit
9d1440fb45
@ -114,7 +114,7 @@ AS
|
||||
SELECT
|
||||
pr.parent_product_id AS product_id,
|
||||
IFNULL((SELECT SUM(amount) FROM stock WHERE product_id = pr.parent_product_id), 0) AS amount,
|
||||
SUM(s.amount) * IFNULL(qucr.factor, 1.0) AS amount_aggregated,
|
||||
SUM(s.amount * IFNULL(qucr.factor, 1.0)) AS amount_aggregated,
|
||||
IFNULL(ROUND((SELECT SUM(IFNULL(price,0) * amount) FROM stock WHERE product_id = pr.parent_product_id), 2), 0) AS value,
|
||||
MIN(s.best_before_date) AS best_before_date,
|
||||
IFNULL((SELECT SUM(amount) FROM stock WHERE product_id = pr.parent_product_id AND open = 1), 0) AS amount_opened,
|
||||
|
Loading…
x
Reference in New Issue
Block a user