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:
Ali 2026-03-26 23:12:04 +04:00
parent f87db8e6de
commit e975cfbe26
1 changed files with 1 additions and 1 deletions

View File

@ -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