Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c9b0fd1a

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

  • ID c9b0fd1a799f6992917f1b5fb92b661ad18cb30c
  • Vorgänger d6cc1832
  • Nachfolger ea402a2c

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