fix: duplicate rows fetching in RFQ
This commit is contained in:
@@ -934,7 +934,13 @@ erpnext.utils.map_current_doc = function (opts) {
|
|||||||
frappe.msgprint(__("Please select {0}", [opts.source_doctype]));
|
frappe.msgprint(__("Please select {0}", [opts.source_doctype]));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (values.constructor === Array) {
|
||||||
|
opts.source_name = [...new Set(values)];
|
||||||
|
} else {
|
||||||
opts.source_name = values;
|
opts.source_name = values;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
opts.allow_child_item_selection ||
|
opts.allow_child_item_selection ||
|
||||||
["Purchase Receipt", "Delivery Note"].includes(opts.source_doctype)
|
["Purchase Receipt", "Delivery Note"].includes(opts.source_doctype)
|
||||||
|
|||||||
Reference in New Issue
Block a user