Revision e9a4819e
Von Sven Schöling vor etwa 3 Jahren hinzugefügt
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
DeliveryOrder: exchangerate