From 7af52e80d1ba80b5b53582e9713668816c2cd9f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 2 Apr 2007 13:27:35 +0000 Subject: [PATCH] Bugfix: Erzeugnisse muessen ihre Einheiten aus dimensions suchen. --- bin/mozilla/io.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index f54466065..c7b4f8f22 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -264,8 +264,6 @@ sub display_row { $form->{"unit_old_$i"} = $form->{"unit_$i"}; } - - # Die zuletzt ausgewaehlte mit der aktuell ausgewaehlten Einheit # vergleichen und bei Unterschied den Preis entsprechend umrechnen. $form->{"selected_unit_$i"} = $form->{"unit_$i"} unless ($form->{"selected_unit_$i"}); @@ -342,7 +340,8 @@ sub display_row { . $form->format_amount(\%myconfig, $form->{"ship_$i"}) . qq|>|; - my $is_part = $form->{"inventory_accno_$i"}; + my $is_part = $form->{"inventory_accno_$i"}; + my $is_assembly = $form->{"assembly_$i"}; my $is_assigned = $form->{"id_$i"}; my $this_unit = $form->{"unit_$i"}; if ($form->{"selected_unit_$i"} && $this_unit && @@ -355,7 +354,7 @@ sub display_row { } $column_data{"unit"} = "" . - AM->unit_select_html($is_part ? $dimension_units : + AM->unit_select_html($is_part || $is_assembly ? $dimension_units : $is_assigned ? $service_units : $all_units, "unit_$i", $this_unit, $is_assigned ? $form->{"unit_$i"} : undef) -- 2.20.1