Browse Source

fix: Bank statement import

develop
Deepesh Garg 3 years ago
parent
commit
9d295ca939
  1. 2
      erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py

2
erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py

@ -51,7 +51,7 @@ class BankStatementImport(DataImport):
self.import_file, self.google_sheets_url
)
if 'Bank Account' not in json.dumps(preview):
if 'Bank Account' not in json.dumps(preview['columns']):
frappe.throw(_("Please add the Bank Account column"))
from frappe.core.page.background_jobs.background_jobs import get_info

Loading…
Cancel
Save