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(
rate.exchange_rate_to_chf * order_position.price_in_chf,
2)
currency_name = order.exchange_rate
currency_name = order.exchange_rate.name
else:
currency_name = 'CHF'
price = order_position.price_in_chf