Unit-Factor kann 0 sein.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 13 Dec 2010 10:35:53 +0000 (11:35 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 27 Oct 2011 15:02:54 +0000 (17:02 +0200)
SL/WH.pm

index 3fbbfa4..e983216 100644 (file)
--- 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;
       }