diff --git a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.js b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.js index a1dca06d1e..f142549810 100644 --- a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.js +++ b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.js @@ -25,7 +25,7 @@ frappe.ui.form.on("Bank Reconciliation Tool", { frappe.require("bank-reconciliation-tool.bundle.js", () => frm.trigger("make_reconciliation_tool") ); - cur_frm.add_custom_button(__('Auto Reconcile'), function(){ + frm.add_custom_button(__('Auto Reconcile'), function(){ frappe.call({ method:"erpnext.accounts.doctype.bank_reconciliation_tool.bank_reconciliation_tool.auto_reconcile_vouchers", args: { diff --git a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py index 5d8d584829..f71855a872 100644 --- a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py +++ b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py @@ -333,9 +333,9 @@ def auto_reconcile_vouchers( if matched_transaction_len == 0: frappe.msgprint(_("There is no any matched reference number for reconciliation")) elif matched_transaction_len == 1: - frappe.msgprint(_(f"{matched_transaction_len} transaction is reconcilied")) + frappe.msgprint(_("{0} transaction is reconcilied").format(matched_transaction_len)) else: - frappe.msgprint(_(f"{matched_transaction_len} transactions are reconcilied")) + frappe.msgprint(_("{0} transactions are reconcilied").format(matched_transaction_len)) frappe.flags.auto_reconcile_vouchers = False