fix the order price currency_name

This commit is contained in:
Andreas Zweili 2018-03-02 14:55:16 +01:00
parent fded4a80f9
commit 8bbe18945d
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ def order(request, order_id):
price = round( price = round(
rate.exchange_rate_to_chf * order_position.price_in_chf, rate.exchange_rate_to_chf * order_position.price_in_chf,
2) 2)
currency_name = order.exchange_rate currency_name = order.exchange_rate.name
else: else:
currency_name = 'CHF' currency_name = 'CHF'
price = order_position.price_in_chf price = order_position.price_in_chf