Merge pull request #26324 from deepeshgarg007/bank_statement_import_fix_develop

fix: Bank statement import
This commit is contained in:
Deepesh Garg 2021-07-06 17:25:21 +05:30 committed by GitHub
commit a62f94379b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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