From b5d8356096ebfbb0a30ac3386e005412245994d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 15 Jun 2020 14:26:06 +0200 Subject: [PATCH] Wechselkurs in VK-Rechnung nicht aus Zahlung setzen --- bin/mozilla/is.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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"}; } -- 2.20.1