X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f45b296fb0bb9491d86d80e9f7a7d79c3e0295ba..5494f687372570c9d1c5eb5c6aad73767e50820a:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 737d46143..19f546db3 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -285,7 +285,7 @@ sub form_header { my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; - my $cgi = $main::cgi; + my $cgi = $::request->{cgi}; $main::auth->assert('invoice_edit'); @@ -335,7 +335,7 @@ sub form_header { my %labels = map { $_ => $_ } @{ $form->{ALL_CURRENCIES} }; $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; $form->{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency}; - $TMPL_VAR{currencies} = NTI($::cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, + $TMPL_VAR{currencies} = NTI($::request->{cgi}->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, '-values' => \@values, '-labels' => \%labels)) if scalar @values; push @custom_hiddens, "forex"; push @custom_hiddens, "exchangerate" if $form->{forex}; @@ -435,7 +435,7 @@ sub form_footer { $form->{"changeable_$i"} = ($form->{"acc_trans_id_$i"})? 0 : 1; } elsif ($::lx_office_conf{features}->{payments_changeable} == 2) { # on the same day - $form->{"changeable_$i"} = (($form->{"gldate_$i"} eq '') || + $form->{"changeable_$i"} = (($form->{"gldate_$i"} eq '') || ($form->current_date(\%myconfig) eq $form->{"gldate_$i"})); }