Item Code: Item Name Format in Submitted DocTypes (v7)

Hello,

When I submit a document that contains Item child table like Sales Invoice Item, I see the item code in the following format:

Item Code: Item Name

For example:

How can I Display the item code without the item name like this:

31614/289/110/124

Thanks for your help

I just found the solution in the developer tutorial.

i want this solution please guide me

Hi,
The new URL of the documentation
https://frappeframework.com/docs/user/en/guides/desk/formatter_for_link_fields

ducky.form.link_formatters[‘Item’] = function(value, doc) {
if (doc && value && doc.item_name && doc.item_name !== value && doc.item_code === value) {
return value + ': ’ + doc.item_name;
} else if (!value && doc.doctype && doc.item_name) {
// format blank value in child table
return doc.item_name;
} else {
// if value is blank in report view or item code and name are the same, return as is
return value;
}
}
I found this core code but it did not work for me , on submission I don’t want item_name with item_code like @mibrahim showing in image

Hi,

Customize Item doctype and change the naming rule with the one you wants, and may be complex SQL update to set everything in good shape