mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
More optimizations around edited stock entries handling (references #2292)
This commit is contained in:
parent
a47bccab3f
commit
d6cc87ac86
@ -21,6 +21,7 @@ SELECT
|
||||
FROM stock_log sli_consumed
|
||||
WHERE sli_consumed.stock_id = x.stock_id
|
||||
AND sli_consumed.transaction_type IN ('consume', 'inventory-correction')
|
||||
AND sli_consumed.id < x.stock_log_id_of_newest_edited_entry
|
||||
AND sli_consumed.amount < 0
|
||||
AND sli_consumed.undone = 0), 0) AS edited_origin_amount
|
||||
FROM (
|
||||
|
Loading…
x
Reference in New Issue
Block a user