Implement converting prices #79
|
@ -8,6 +8,9 @@ currency_to = currency_to.lower()
|
||||||
|
|
||||||
|
|
||||||
def save_converted_info(purchase, converted_price, converted_currency):
|
def save_converted_info(purchase, converted_price, converted_currency):
|
||||||
|
print(
|
||||||
|
f"Changing converted price of {purchase} to {converted_price} {converted_currency} "
|
||||||
|
)
|
||||||
purchase.converted_price = converted_price
|
purchase.converted_price = converted_price
|
||||||
purchase.converted_currency = converted_currency
|
purchase.converted_currency = converted_currency
|
||||||
purchase.save()
|
purchase.save()
|
||||||
|
|
Loading…
Reference in New Issue