Generate item code from brand, item group and variant

Is it possible to generate item code automatically from brand name, item group and variant ?

Thanks in advance

Yes, create a custom script. Here is mine that creates Item Code from Part Number and Revision. You can modify this according to your needs.

cur_frm.cscript.custom_validate = function(doc) {
// clear item_code (name is from item_code)
doc.item_code = “”;
//item code should be part_number_rev
doc.item_code = doc.part_number
doc.item_code += “_”;
doc.item_code += doc.revision;

1 Like