fix: use amount instead of originalAmount for card statement imports
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f87db8e6de
commit
e975cfbe26
|
|
@ -1400,7 +1400,7 @@ def get_card_statement_transactions(from_date, to_date, card_account_number, log
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Amount and currency
|
# Amount and currency
|
||||||
amount = abs(flt(txn.get("originalAmount") or txn.get("amount") or 0))
|
amount = abs(flt(txn.get("amount") or txn.get("originalAmount") or 0))
|
||||||
currency = (txn.get("originalCurrencyStr") or txn.get("currencyStr") or "AZN").strip()
|
currency = (txn.get("originalCurrencyStr") or txn.get("currencyStr") or "AZN").strip()
|
||||||
|
|
||||||
# Direction: DEBIT/CREDIT → D/C
|
# Direction: DEBIT/CREDIT → D/C
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue