removed filter for multi currency
This commit is contained in:
parent
42e5c42ab3
commit
5b47d06eec
|
|
@ -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
|
||||
ba_currency = frappe.db.get_value("Bank Account", bank_account, "account_currency") or currency
|
||||
currency = ba_currency
|
||||
gl_account = frappe.db.get_value("Bank Account", bank_account, "account")
|
||||
if gl_account:
|
||||
currency = frappe.db.get_value("Account", gl_account, "account_currency") or currency
|
||||
|
||||
# Optional party mapping: VÖEN → name → None
|
||||
# C (credit, money in) → prefer Customer; D (debit, money out) → prefer Supplier
|
||||
|
|
|
|||
Loading…
Reference in New Issue