X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3ed938a746e49eda9d3e50b5aa80133b3daac42e..2e26ccd536925a2f4d7a4e3975a778d9e452f30a:/bin/mozilla/is.pl?ds=sidebyside diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index bcbf10782..f438f1c9b 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -485,8 +485,6 @@ sub update { my ($recursive_call) = @_; - $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call; - $form->{print_and_post} = 0 if $form->{second_run}; my $taxincluded = $form->{taxincluded} ? "checked" : ''; $form->{update} = 1; @@ -495,6 +493,9 @@ sub update { $form->{taxincluded} ||= $taxincluded; + if (!$form->{forex}) { # read exchangerate from input field (not hidden) + $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call; + } $form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy'); $form->{exchangerate} = $form->{forex} if $form->{forex};