Commit e7a380e5 authored by Vera Kurpas's avatar Vera Kurpas Committed by Julien Muchembled

Added Ifnull to ZSQL method for correcting the FIFO value if there were no outgoing transactions.

parent 2174b467
...@@ -121,7 +121,7 @@ quantity at each step:\n ...@@ -121,7 +121,7 @@ quantity at each step:\n
*/\n */\n
SET\n SET\n
@unbalanced_output:=\n @unbalanced_output:=\n
(SELECT\n IFNULL((SELECT\n
SUM(-quantity)\n SUM(-quantity)\n
FROM\n FROM\n
stock, catalog\n stock, catalog\n
...@@ -129,7 +129,7 @@ SET\n ...@@ -129,7 +129,7 @@ SET\n
quantity < 0\n quantity < 0\n
AND\n AND\n
<dtml-var where_expression>\n <dtml-var where_expression>\n
),\n ),0),\n
@total_asset_price=0\n @total_asset_price=0\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
\n \n
......
40958 40959
\ No newline at end of file \ No newline at end of file
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