Commit 2ee71c6c authored by Klaus Wölfel's avatar Klaus Wölfel

WOELFEL TEMP erp5_core undefined price as 0 until decide how to do in generic erp5

parent 5d8138a7
......@@ -111,7 +111,7 @@ SET
SELECT
(@total_asset_price:=@total_asset_price +
GREATEST(0, (quantity-@unbalanced_output) * total_price/quantity)
GREATEST(0, (quantity-@unbalanced_output) * IFNULL(total_price,0)/quantity)
) AS total_asset_price,
(@unbalanced_output:=GREATEST(0, @unbalanced_output-quantity)) as dummy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment