Merge pull request #32882 from ernestoruiz89/patch-9
fix: add translation function to doctype name on message
This commit is contained in:
commit
9154d08b89
@ -11,7 +11,7 @@ $.extend(erpnext.bulk_transaction_processing, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let count_of_rows = checked_items.length;
|
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) {
|
if (doc_name.length == 0) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.utilities.bulk_transaction.transaction_processing",
|
method: "erpnext.utilities.bulk_transaction.transaction_processing",
|
||||||
@ -20,11 +20,11 @@ $.extend(erpnext.bulk_transaction_processing, {
|
|||||||
|
|
||||||
});
|
});
|
||||||
if (count_of_rows > 10) {
|
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 {
|
} else {
|
||||||
frappe.msgprint(__("Selected document must be in submitted state"));
|
frappe.msgprint(__("Selected document must be in submitted state"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user