When both Item Code and Item Name columns are added in Report, Item Code column shows Combined value of Item Code : Item Name. If only item code added, then it shows only item code. When Both columns are added then Item Code column value becomes too big. Is there a way to display each column value separately.
When you customize Item doctype what is showing for the view options?
Resolved for now. Added below code in report’s JS file.
onload: function() {
frappe.form.link_formatters['Item'] = function(value, doc) {
return doc.item_code;
};
},
formatter: function(value, row, column, data, default_formatter) {
return default_formatter(value, row, column, data);
}