fix: data format
This commit is contained in:
parent
d65243eb65
commit
12822f7c36
@ -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: {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user