fix: data format

This commit is contained in:
sonali 2022-12-30 14:06:19 +05:30
parent d65243eb65
commit 12822f7c36
2 changed files with 3 additions and 3 deletions

View File

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

View File

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