mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix: change subcontracted item display (#25426)
This commit is contained in:
@@ -694,7 +694,7 @@ erpnext.utils.map_current_doc = function(opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
frappe.form.link_formatters['Item'] = function(value, doc) {
|
frappe.form.link_formatters['Item'] = function(value, doc) {
|
||||||
if (doc && value && doc.item_name && doc.item_name !== value) {
|
if (doc && value && doc.item_name && doc.item_name !== value && doc.item_code === value) {
|
||||||
return value + ': ' + doc.item_name;
|
return value + ': ' + doc.item_name;
|
||||||
} else if (!value && doc.doctype && doc.item_name) {
|
} else if (!value && doc.doctype && doc.item_name) {
|
||||||
// format blank value in child table
|
// format blank value in child table
|
||||||
|
|||||||
Reference in New Issue
Block a user