fix: add translation functuinon to doctype name on message in bulk_transaction_processing

This commit is contained in:
Ernesto Ruiz
2022-11-07 09:43:28 -06:00
committed by GitHub
parent 404662e794
commit 1f13bc906b

View File

@@ -11,7 +11,7 @@ $.extend(erpnext.bulk_transaction_processing, {
});
let count_of_rows = checked_items.length;
frappe.confirm(__("Create {0} {1} ?", [count_of_rows, to_doctype]), ()=>{
frappe.confirm(__("Create {0} {1} ?", [count_of_rows, __(to_doctype)]), ()=>{
if (doc_name.length == 0) {
frappe.call({
method: "erpnext.utilities.bulk_transaction.transaction_processing",
@@ -20,11 +20,11 @@ $.extend(erpnext.bulk_transaction_processing, {
});
if (count_of_rows > 10) {
frappe.show_alert("Starting a background job to create {0} {1}", [count_of_rows, to_doctype]);
frappe.show_alert("Starting a background job to create {0} {1}", [count_of_rows, __(to_doctype)]);
}
} else {
frappe.msgprint(__("Selected document must be in submitted state"));
}
});
}
});
});