This commit is contained in:
ThomasV 2018-03-01 19:09:24 +01:00
parent 37e43d9c10
commit 968862076f
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ class Abstract_Wallet(PrintError):
date = timestamp_to_datetime(timestamp)
fiat_value = self.get_fiat_value(tx_hash, fx.ccy)
fiat_default = fiat_value is None
fiat_value = - fiat_value if fiat_value is not None else value / Decimal(COIN) * self.price_at_timestamp(tx_hash, fx.timestamp_rate)
fiat_value = fiat_value if fiat_value is not None else value / Decimal(COIN) * self.price_at_timestamp(tx_hash, fx.timestamp_rate)
item['fiat_value'] = Fiat(fiat_value, fx.ccy)
item['fiat_default'] = fiat_default
if value < 0: