mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 18:25:32 +00:00
fix: attribute error on Bank Statement Import retry
(cherry picked from commit aec630c74f)
This commit is contained in:
@@ -148,6 +148,9 @@ def start_import(
|
|||||||
import_file = ImportFile("Bank Transaction", file=file, import_type="Insert New Records")
|
import_file = ImportFile("Bank Transaction", file=file, import_type="Insert New Records")
|
||||||
|
|
||||||
data = parse_data_from_template(import_file.raw_data)
|
data = parse_data_from_template(import_file.raw_data)
|
||||||
|
# Importer expects 'Data Import' class, which has 'payload_count' attribute
|
||||||
|
if not data_import.get("payload_count"):
|
||||||
|
data_import.payload_count = len(data) - 1
|
||||||
|
|
||||||
if import_file_path:
|
if import_file_path:
|
||||||
add_bank_account(data, bank_account)
|
add_bank_account(data, bank_account)
|
||||||
|
|||||||
Reference in New Issue
Block a user