Convert amount to float before adding in total calculation

This commit is contained in:
Mark Veidemanis 2022-02-21 10:02:20 +00:00
parent d1f43f0efc
commit 05993ac119
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ class Transactions(object):
if not contact["data"]["is_selling"]: if not contact["data"]["is_selling"]:
continue continue
if currency == "USD": if currency == "USD":
cumul_usd += amount cumul_usd += float(amount)
else: else:
rate = rates[currency] rate = rates[currency]
amount_usd = float(amount) / rate amount_usd = float(amount) / rate