Unified edited stock transactions handling (fixes #2292)

This commit is contained in:
Bernd Bestel
2023-08-05 09:58:21 +02:00
parent 491ad8c791
commit 61a3a4329b
5 changed files with 138 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ class StockReportsController extends BaseController
pg.id AS id,
pg.name AS name,
SUM(pph.amount * pph.price) AS total
FROM product_price_history pph
FROM products_price_history pph
JOIN products p
ON pph.product_id = p.id
JOIN product_groups pg
@@ -53,7 +53,7 @@ class StockReportsController extends BaseController
pg.id AS group_id,
pg.name AS group_name,
SUM(pph.amount * pph.price) AS total
FROM product_price_history pph
FROM products_price_history pph
JOIN products p
ON pph.product_id = p.id
JOIN product_groups pg