From 6be10c6a62e8e99aed3a4147ecbb0053faa8fcba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 17 Feb 2022 08:14:55 +0100 Subject: [PATCH] =?utf8?q?Payment-Helper:=20Fremdw=C3=A4hrung=20nur=20?= =?utf8?q?=C3=BCber=20param=20steuern=20und=20nicht=20=C3=BCber=20den=20Be?= =?utf8?q?leg?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/Payment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index 8d0174d9b..f8f156d26 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -79,7 +79,7 @@ sub pay_invoice { # currency is either passed or use the invoice currency if it differs from the default currency # TODO remove my ($exchangerate,$currency); - if ($params{currency} || $params{currency_id} || $self->currency_id != $::instance_conf->get_currency_id) { + if ($params{currency} || $params{currency_id}) { if ($params{currency} || $params{currency_id} ) { # currency was specified $currency = SL::DB::Manager::Currency->find_by(name => $params{currency}) || SL::DB::Manager::Currency->find_by(id => $params{currency_id}); } else { # use invoice currency -- 2.20.1