Payment-Helper: Fremdwährung nur über param steuern und nicht über den Beleg
authorJan Büren <jan@kivitendo.de>
Thu, 17 Feb 2022 07:14:55 +0000 (08:14 +0100)
committerJan Büren <jan@kivitendo.de>
Thu, 17 Feb 2022 07:14:55 +0000 (08:14 +0100)
SL/DB/Helper/Payment.pm

index 8d0174d..f8f156d 100644 (file)
@@ -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