- #passt die qty an die gewählte Einheit an
- #qty wurde bisher noch für andere Berechnungen benötigt und daher erst am Schluss überschrieben
- $ar->{qty} *= $basefactor;
-
- #weight is the still the weight per part, but here we want the total weight
- $ar->{weight} *= $ar->{qty};
-
- map { $ar->{$_} = $form->format_amount(\%myconfig, $ar->{$_}, 2) } qw(marge_total marge_percent);
+ map { $ar->{$_} = $form->format_amount(\%myconfig, $ar->{$_}, 2) } qw(marge_total marge_percent qty);
+ map { $ar->{$_} = $form->format_amount(\%myconfig, $ar->{$_}, 3) } qw(weight);