diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice_list.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice_list.js index 82d00308db4..e1c37c60013 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice_list.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice_list.js @@ -63,7 +63,7 @@ frappe.listview_settings["Purchase Invoice"] = { }); listview.page.add_action_item(__("Payment"), ()=>{ - erpnext.bulk_transaction_processing.create(listview, "Purchase Invoice", "Payment"); + erpnext.bulk_transaction_processing.create(listview, "Purchase Invoice", "Payment Entry"); }); } }; diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js index 1130284ecc5..1605b151a14 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js @@ -29,7 +29,7 @@ frappe.listview_settings['Sales Invoice'] = { }); listview.page.add_action_item(__("Payment"), ()=>{ - erpnext.bulk_transaction_processing.create(listview, "Sales Invoice", "Payment"); + erpnext.bulk_transaction_processing.create(listview, "Sales Invoice", "Payment Entry"); }); } }; diff --git a/erpnext/utilities/bulk_transaction.py b/erpnext/utilities/bulk_transaction.py index eed7c12763b..c1579b3cbcc 100644 --- a/erpnext/utilities/bulk_transaction.py +++ b/erpnext/utilities/bulk_transaction.py @@ -73,7 +73,7 @@ def task(doc_name, from_doctype, to_doctype): }, "Sales Invoice": { "Delivery Note": sales_invoice.make_delivery_note, - "Payment": payment_entry.get_payment_entry, + "Payment Entry": payment_entry.get_payment_entry, }, "Delivery Note": { "Sales Invoice": delivery_note.make_sales_invoice, @@ -94,11 +94,11 @@ def task(doc_name, from_doctype, to_doctype): }, "Purchase Invoice": { "Purchase Receipt": purchase_invoice.make_purchase_receipt, - "Payment": payment_entry.get_payment_entry, + "Payment Entry": payment_entry.get_payment_entry, }, "Purchase Receipt": {"Purchase Invoice": purchase_receipt.make_purchase_invoice}, } - if to_doctype in ["Advance Payment", "Payment"]: + if to_doctype in ["Advance Payment", "Payment Entry"]: obj = mapper[from_doctype][to_doctype](from_doctype, doc_name) else: obj = mapper[from_doctype][to_doctype](doc_name) @@ -151,7 +151,9 @@ def update_logger(doc_name, e, from_doctype, to_doctype, status, log_date=None, def show_job_status(fail_count, deserialized_data_count, to_doctype): if not fail_count: frappe.msgprint( - _("Creation of {0} successful").format(to_doctype), + _("Creation of {1}(s) successful").format( + to_doctype.lower().replace(" ", "-"), to_doctype + ), title="Successful", indicator="green", )