From 9de83d1a34f29dbf2f0ea4f2b4230913461c05db Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 23 Jul 2009 14:52:30 +0200 Subject: [PATCH] =?utf8?q?Eine=20Warnung=20=C3=BCber=20undefinierte=20Wert?= =?utf8?q?e=20vermeiden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/WH.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1