From: Moritz Bunkus Date: Thu, 2 Aug 2007 07:16:24 +0000 (+0000) Subject: Revert von Revision 2795: ic.pl enthielt Ă„nderungen, die ich noch nicht committen... X-Git-Tag: release-2.6.0beta1~533 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1b6ded9f5b9dcd1367f803592786a8df48992a7d;p=kivitendo-erp.git Revert von Revision 2795: ic.pl enthielt Ă„nderungen, die ich noch nicht committen wollte. --- diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 86bddaa70..abd36a84d 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1736,11 +1736,10 @@ sub generate_report { # fresh row, for inserting later my $row = { map { $_ => { 'data' => $ref->{$_} } } @columns }; - $ref->{exchangerate} ||= 1; - $ref->{price_factor} ||= 1; - $ref->{sellprice} *= $ref->{exchangerate} / $ref->{price_factor}; - $ref->{listprice} *= $ref->{exchangerate} / $ref->{price_factor}; - $ref->{lastcost} *= $ref->{exchangerate} / $ref->{price_factor}; + $ref->{exchangerate} = 1 unless $ref->{exchangerate}; + $ref->{sellprice} *= $ref->{exchangerate}; + $ref->{listprice} *= $ref->{exchangerate}; + $ref->{lastcost} *= $ref->{exchangerate}; # use this for assemblies my $onhand = $ref->{onhand}; @@ -1987,7 +1986,6 @@ sub form_header { my ($notdiscountableok, $notdiscountable); my ($formula, $formula_label, $imagelinks, $obsolete, $shopok, $shop); - $form->get_lists('price_factors' => 'ALL_PRICE_FACTORS'); map({ $form->{$_} = $form->format_amount(\%myconfig, $form->{$_}, -2) } qw(sellprice listprice lastcost gv)); @@ -2328,22 +2326,6 @@ sub form_header { $unit_select .= AM->unit_select_html($units, "unit", $form->{"unit"}); } - my $price_factor; - if (0 < scalar @{ $form->{ALL_PRICE_FACTORS} }) { - my @values = ('', map { $_->{id} } @{ $form->{ALL_PRICE_FACTORS} }); - my %labels = map { $_->{id} => $_->{description} } @{ $form->{ALL_PRICE_FACTORS} }; - - $price_factor = - qq|| - . $locale->text('Price Factor') - . qq|| - . NTI($cgi->popup_menu('-name' => 'price_factor_id', - '-default' => $form->{price_factor_id}, - '-values' => \@values, - '-labels' => \%labels)) - . qq||; - } - $form->{fokus} = "ic.partnumber"; $form->header; @@ -2457,7 +2439,6 @@ sub form_header { {sellprice}> $lastcost - $price_factor | . $locale->text('Unit') . qq| $unit_select @@ -2911,7 +2892,7 @@ sub save { # now take it apart and restore original values foreach my $item (split /&/, $previousform) { - my ($key, $value) = split m/=/, $item, 2; + my ($key, $value) = split /=/, $item, 2; $value =~ s/%26/&/g; $form->{$key} = $value; }