fix: download_import_log if rows are greater than 5000

(cherry picked from commit 2112d8f772)
This commit is contained in:
ljain112
2024-06-25 14:55:51 +05:30
committed by Mergify
parent 62aac8bb85
commit 4eb251b59a
2 changed files with 14 additions and 0 deletions

View File

@@ -338,6 +338,15 @@ frappe.ui.form.on("Bank Statement Import", {
);
},
export_import_log(frm) {
open_url_post(
"/api/method/erpnext.accounts.doctype.bank_statement_import.bank_statement_import.download_import_log",
{
data_import_name: frm.doc.name,
}
);
},
show_import_warnings(frm, preview_data) {
let columns = preview_data.columns;
let warnings = JSON.parse(frm.doc.template_warnings || "[]");

View File

@@ -121,6 +121,11 @@ def download_errored_template(data_import_name):
data_import.export_errored_rows()
@frappe.whitelist()
def download_import_log(data_import_name):
return frappe.get_doc("Bank Statement Import", data_import_name).download_import_log()
def parse_data_from_template(raw_data):
data = []