removed filter for multi currency

This commit is contained in:
Ali 2026-03-13 20:21:30 +04:00
parent 42e5c42ab3
commit 5b47d06eec
1 changed files with 3 additions and 2 deletions

View File

@ -2124,8 +2124,9 @@ def _import_one_bank_transaction(txn_data, settings, voen_to_party, name_to_part
} }
# Use the bank account's own currency to avoid mismatch errors in Frappe # Use the bank account's own currency to avoid mismatch errors in Frappe
ba_currency = frappe.db.get_value("Bank Account", bank_account, "account_currency") or currency gl_account = frappe.db.get_value("Bank Account", bank_account, "account")
currency = ba_currency if gl_account:
currency = frappe.db.get_value("Account", gl_account, "account_currency") or currency
# Optional party mapping: VÖEN → name → None # Optional party mapping: VÖEN → name → None
# C (credit, money in) → prefer Customer; D (debit, money out) → prefer Supplier # C (credit, money in) → prefer Customer; D (debit, money out) → prefer Supplier