From: Bernd Blessmann Date: Mon, 19 Dec 2011 10:43:42 +0000 (+0100) Subject: Nach Ändern der Währung im Verkauf und Einkauf Erneuern auslösen. X-Git-Tag: release-2.7.0beta1~123 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;ds=sidebyside;h=69f328366fdff5d6eb8408499691a479792c3540;p=kivitendo-erp.git Nach Ändern der Währung im Verkauf und Einkauf Erneuern auslösen. --- diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index cb3d3a5ad..b550532ed 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -308,7 +308,9 @@ sub form_header { $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; $TMPL_VAR{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency}; $TMPL_VAR{currencies} = NTI($cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, - '-values' => \@values, '-labels' => \%labels)) if scalar @values; + '-values' => \@values, '-labels' => \%labels, + '-onchange' => "document.getElementById('update_button').click();" + )) if scalar @values; push @custom_hiddens, "forex"; push @custom_hiddens, "exchangerate" if $form->{forex}; diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index beb6093f3..b858db1cd 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -332,7 +332,9 @@ sub form_header { $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; $form->{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency}; $TMPL_VAR{currencies} = NTI($::request->{cgi}->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, - '-values' => \@values, '-labels' => \%labels)) if scalar @values; + '-values' => \@values, '-labels' => \%labels, + '-onchange' => "document.getElementById('update_button').click();" + )) if scalar @values; push @custom_hiddens, "forex"; push @custom_hiddens, "exchangerate" if $form->{forex}; diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index addf693c5..ac3451db1 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -361,7 +361,9 @@ sub form_header { $form->{currency} = $form->{defaultcurrency} unless $form->{currency}; $TMPL_VAR{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency}; $TMPL_VAR{currencies} = NTI($cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"}, - '-values' => \@values, '-labels' => \%labels)) if scalar @values; + '-values' => \@values, '-labels' => \%labels, + '-onchange' => "document.getElementById('update_button').click();" + )) if scalar @values; push @custom_hiddens, "forex"; push @custom_hiddens, "exchangerate" if $form->{forex};