From: Jan Büren Date: Thu, 17 Feb 2022 07:14:55 +0000 (+0100) Subject: Payment-Helper: Fremdwährung nur über param steuern und nicht über den Beleg X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~196 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6be10c6a62e8e99aed3a4147ecbb0053faa8fcba;p=kivitendo-erp.git Payment-Helper: Fremdwährung nur über param steuern und nicht über den Beleg --- 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