X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWH.pm;h=28e836e485cd22b3a7018b93182b004025c2678f;hb=e6535205268abb2fe58855f627a41ae389e7c509;hp=9a0635603af2a34e21b1d476d2083f8d96fb81ca;hpb=69a44d3b470358fcd7e473d38fb5dfd5c62c8b50;p=kivitendo-erp.git diff --git a/SL/WH.pm b/SL/WH.pm index 9a0635603..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} ||= '';