From 3664e6cf5b0b6fb1b48b666415034668cfd8b095 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 13 Dec 2010 11:35:53 +0100 Subject: [PATCH] Unit-Factor kann 0 sein. --- SL/WH.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/WH.pm b/SL/WH.pm index 3fbbfa4a5..e98321616 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -109,7 +109,7 @@ sub transfer { ); if ($unit) { - $qty *= $unit->factor; + $qty *= $unit->factor || 1; $qty /= $part->unit_obj->factor || 1 if $part->unit; } -- 2.20.1