Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6be10c6a

Von Jan Büren vor fast 3 Jahren hinzugefügt

  • ID 6be10c6a62e8e99aed3a4147ecbb0053faa8fcba
  • Vorgänger 7a61cce3
  • Nachfolger a0ae7b99

Payment-Helper: Fremdwährung nur über param steuern und nicht über den Beleg

Unterschiede anzeigen:

SL/DB/Helper/Payment.pm
79 79
  # currency is either passed or use the invoice currency if it differs from the default currency
80 80
  # TODO remove
81 81
  my ($exchangerate,$currency);
82
  if ($params{currency} || $params{currency_id} || $self->currency_id != $::instance_conf->get_currency_id) {
82
  if ($params{currency} || $params{currency_id}) {
83 83
    if ($params{currency} || $params{currency_id} ) { # currency was specified
84 84
      $currency = SL::DB::Manager::Currency->find_by(name => $params{currency}) || SL::DB::Manager::Currency->find_by(id => $params{currency_id});
85 85
    } else { # use invoice currency

Auch abrufbar als: Unified diff