Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e9a4819e

Von Sven Schöling vor etwa 3 Jahren hinzugefügt

  • ID e9a4819ed7bc54f4a9eb5e3ed0f85243417f7371
  • Vorgänger a62d4e40
  • Nachfolger 65940d66

DeliveryOrder: exchangerate

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
796 796
  my $data = {
797 797
    is_standard   => $self->order->currency_id == $::instance_conf->get_currency_id,
798 798
    currency_name => $self->order->currency->name,
799
    exchangerate  => $self->order->daily_exchangerate_as_null_number,
800 799
  };
801 800

  
802 801
  $self->render(\SL::JSON::to_json($data), { type => 'json', process => 0 });
......
1327 1326
    $price_src = $price_source->best_price
1328 1327
               ? $price_source->best_price
1329 1328
               : $price_source->price_from_source("");
1330
    $price_src->price($::form->round_amount($price_src->price / $record->exchangerate, 5)) if $record->exchangerate;
1331 1329
    $price_src->price(0) if !$price_source->best_price;
1332 1330
  }
1333 1331

  

Auch abrufbar als: Unified diff