Merge pull request #6722 from mbauskar/develop
[minor] link formatter fixes for Item and Employee
This commit is contained in:
commit
7d3012d0b8
@ -192,7 +192,7 @@ erpnext.utils.map_current_doc = function(opts) {
|
||||
|
||||
frappe.form.link_formatters['Item'] = function(value, doc) {
|
||||
if(doc && doc.item_name && doc.item_name !== value) {
|
||||
return value + ': ' + doc.item_name;
|
||||
return value? value + ': ' + doc.item_name: doc.item_name;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
@ -200,7 +200,7 @@ frappe.form.link_formatters['Item'] = function(value, doc) {
|
||||
|
||||
frappe.form.link_formatters['Employee'] = function(value, doc) {
|
||||
if(doc && doc.employee_name && doc.employee_name !== value) {
|
||||
return value + ': ' + doc.employee_name;
|
||||
return value? value + ': ' + doc.employee_name: doc.employee_name;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user