X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3921865e405fb6078d1df0f193688efab43fc032..9de83d1a34f29dbf2f0ea4f2b4230913461c05db:/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; }