Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5c797879

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

  • ID 5c797879ae8c5e597073378daef3357fd7f96eec
  • Vorgänger 3b4e8942
  • Nachfolger 995ea08d

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