kg to g convertion fix in report
This commit is contained in:
parent
5316a9a1cb
commit
8f34af9d7c
|
|
@ -21,6 +21,12 @@ class SamashtiDashboard(models.AbstractModel):
|
|||
pt.name AS product_name,
|
||||
pc.name AS category,
|
||||
uom.name AS uom,
|
||||
-- Current Cost (from Valuation Layer)
|
||||
COALESCE((
|
||||
SELECT SUM(svl.value) / NULLIF(SUM(svl.quantity), 0)
|
||||
FROM stock_valuation_layer svl
|
||||
WHERE svl.product_id = pp.id
|
||||
), 0) AS current_cost,
|
||||
|
||||
-- Opening Stock: includes inventory adjustments before fromDate
|
||||
COALESCE(SUM(CASE
|
||||
|
|
|
|||
Loading…
Reference in New Issue