From 9e9a940e1361ef26a2cf2f8e40ac1bd901771fdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 13 Oct 2011 14:03:30 +0200 Subject: [PATCH] =?utf8?q?fix=20f=C3=BCr=201731=20-=20einheiten=20konverti?= =?utf8?q?erung=20sollte=20nicht=20abst=C3=BCrzen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DO.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DO.pm b/SL/DO.pm index 17d896f6e..5b5cf1d13 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -1099,7 +1099,7 @@ sub get_shipped_qty { my $all_units = AM->retrieve_all_units(); foreach my $entry (@{ $entries }) { - $entry->{qty} *= $all_units->{$entry->{unit}}->{factor} / $all_units->{$entry->{partunit}}->{factor}; + $entry->{qty} *= AM->convert_unit($entry->{unit}, $entry->{partunit}, $all_units); if (!$ship{$entry->{parts_id}}) { $ship{$entry->{parts_id}} = $entry; -- 2.20.1