X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/60d62c9e8923f671ac1c2eb9318cf78789787e1c..04bfdc112567932e056aad505b79b4bf7dc6b4b4:/SL/WH.pm diff --git a/SL/WH.pm b/SL/WH.pm index cc53427c5..28e836e48 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -111,8 +111,7 @@ sub transfer { ); if ($unit) { - $qty *= $unit->factor || 1; - $qty /= $part->unit_obj->factor || 1 if $part->unit; + $qty = $unit->convert_to($qty, $part->unit_obj); } $params{chargenumber} ||= ''; @@ -1023,6 +1022,8 @@ An expiration date. Note that this is not by default used by C =head1 BUGS +None yet. + =head1 AUTHOR =cut