[FIX] stock_account: missing forward-port
Missing forward-port of commit 5e466d3507
opw-707168
This commit is contained in:
@@ -79,7 +79,7 @@ class StockHistory(models.Model):
|
||||
product_template_id,
|
||||
SUM(quantity) as quantity,
|
||||
date,
|
||||
SUM(price_unit_on_quant * quantity) / SUM(quantity) as price_unit_on_quant,
|
||||
COALESCE(SUM(price_unit_on_quant * quantity) / NULLIF(SUM(quantity), 0), 0) as price_unit_on_quant,
|
||||
source,
|
||||
string_agg(DISTINCT serial_number, ', ' ORDER BY serial_number) AS serial_number
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user