X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/935813e4a2959a0b94933d6b853dd5d129f1a61e..eebe8e90991eacadb6fbd20a648c152017a620c7:/bin/mozilla/invoice_io.pl diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index c69812802..a1098020d 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -88,56 +88,6 @@ use SL::PE; use SL::AM; use Data::Dumper; -sub set_pricegroup { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - my $rowcount = shift; - for my $j (1 .. $rowcount) { - my $pricegroup_old = $form->{"pricegroup_old_$j"}; - if ($form->{PRICES}{$j}) { - my $len = 0; - my $prices = ''; - my $price = 0; - foreach my $item (@{ $form->{PRICES}{$j} }) { - - #$price = $form->round_amount($myconfig, $item->{price}, 5); - #$price = $form->format_amount($myconfig, $item->{price}, 2); - my $price = $item->{price}; - my $pricegroup_id = $item->{pricegroup_id}; - my $pricegroup = $item->{pricegroup}; - - # build drop down list for pricegroups - $prices .= - qq|\n|; - - $len += 1; - - # map { - # $form->{"${_}_$j"} = - # $form->format_amount(\%myconfig, $form->{"${_}_$j"}) - # } qw(sellprice price_new price_old); - - # set new selectedpricegroup_id and prices for "Preis" - if ($item->{selected} && ($pricegroup_id != 0)) { - $form->{"pricegroup_old_$j"} = $pricegroup_id; - $form->{"price_new_$j"} = $price; - # edit: don't change the sellprice here - # $form->{"sellprice_$j"} = $price; # this must only be updated for existing articles, not new ones - } - if ($pricegroup_id == 0) { - $form->{"price_new_$j"} = $form->{"sellprice_$j"}; - } - } - $form->{"prices_$j"} = $prices; - } - } - $main::lxdebug->leave_sub(); -} - sub display_form { $main::lxdebug->enter_sub(); @@ -188,12 +138,6 @@ sub display_form { # $form->{rowcount}--; # my $rowcount = $form->{rowcount}; # - # # get pricegroups for parts - # IS->get_pricegroups_for_parts(\%myconfig, \%$form); - # - # # build up html code for prices_$i - # set_pricegroup($rowcount); - # # $form->{resubmit} = 1; # # } @@ -225,8 +169,8 @@ sub display_form { $subroutine = "makemodel_row"; # assemblies are built from components, they aren't purchased from a vendor - # also the lastcost_$i from makemodel conflicted with the component lastcost_$i - # so we don't need the makemodel rows for assemblies + # also the lastcost_$i from makemodel conflicted with the component lastcost_$i + # so we don't need the makemodel rows for assemblies # create makemodel rows # &{$subroutine}($numrows);