X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9a0d550bdc899d8b7ef6e7dd240e391b5738bd89..e1cb00366d40cc3a1b07e065b51ad39c84baf7e6:/SL/WH.pm diff --git a/SL/WH.pm b/SL/WH.pm index a8492ec0a..91ac12707 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -602,7 +602,7 @@ sub get_warehouse_report { @all_fields = keys %{ $ref } unless (@all_fields); } - $ref->{stock_value} *= $ref->{qty}; + $ref->{stock_value} = ($ref->{stock_value} || 0) * $ref->{qty}; push @contents, $ref; }