we don't try to parse transactions without currencyCode anymore
This commit is contained in:
parent
910b54aff7
commit
15b9e1d10c
1 changed files with 3 additions and 6 deletions
|
|
@ -125,14 +125,11 @@ class PartHistoryPage(Page):
|
|||
raw = transaction.get('counterparty', transaction['displayType'])
|
||||
t.parse(date=date, raw=raw)
|
||||
|
||||
try:
|
||||
if transaction['currencyCode'] != account.currency:
|
||||
transaction = self.browser.convert_amount(account, transaction)
|
||||
try:
|
||||
t.original_amount = self.format_amount(transaction['originalAmount'], transaction["isCredit"])
|
||||
t.original_currency = transaction["currencyCode"]
|
||||
except KeyError:
|
||||
return
|
||||
try:
|
||||
t.amount = self.format_amount(transaction['netAmount'], transaction["isCredit"])
|
||||
except KeyError:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue