mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-19 03:17:55 +00:00
Merge pull request #56492 from mihir-kandoi/messages-js/buying
chore: rewrite user-facing JS messages in buying module
This commit is contained in:
@@ -590,16 +590,14 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends (
|
|||||||
me.frm.doc.items[i].qty = my_qty;
|
me.frm.doc.items[i].qty = my_qty;
|
||||||
|
|
||||||
frappe.msgprint(
|
frappe.msgprint(
|
||||||
"Assigning " +
|
__("Assigning {0} to {1} (row {2})", [
|
||||||
d.mr_name +
|
d.mr_name,
|
||||||
" to " +
|
d.item_code,
|
||||||
d.item_code +
|
me.frm.doc.items[i].idx,
|
||||||
" (row " +
|
])
|
||||||
me.frm.doc.items[i].idx +
|
|
||||||
")"
|
|
||||||
);
|
);
|
||||||
if (qty > 0) {
|
if (qty > 0) {
|
||||||
frappe.msgprint("Splitting " + qty + " units of " + d.item_code);
|
frappe.msgprint(__("Splitting {0} units of {1}", [qty, d.item_code]));
|
||||||
var new_row = frappe.model.add_child(
|
var new_row = frappe.model.add_child(
|
||||||
me.frm.doc,
|
me.frm.doc,
|
||||||
me.frm.doc.items[i].doctype,
|
me.frm.doc.items[i].doctype,
|
||||||
|
|||||||
Reference in New Issue
Block a user