From: Bernd Bleßmann Date: Mon, 15 Jun 2020 12:26:06 +0000 (+0200) Subject: Wechselkurs in VK-Rechnung nicht aus Zahlung setzen X-Git-Tag: release-3.5.6.1~114 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b5d8356096ebfbb0a30ac3386e005412245994d7;p=kivitendo-erp.git Wechselkurs in VK-Rechnung nicht aus Zahlung setzen --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 2c90dbe6e..c1b61d574 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -727,10 +727,7 @@ sub update { for my $i (1 .. $form->{paidaccounts}) { next unless $form->{"paid_$i"}; - map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) } qw(paid exchangerate); - if (!$form->{"forex_$i"}) { #read exchangerate from input field (not hidden) - $form->{exchangerate} = $form->{"exchangerate_$i"}; - } + map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) } qw(paid exchangerate); $form->{"forex_$i"} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{"datepaid_$i"}, 'buy'); $form->{"exchangerate_$i"} = $form->{"forex_$i"} if $form->{"forex_$i"}; }