I am new to ERPNEXT and I wanted to set the Item code to be auto-generated as per the below scenario.
I have created an “Item Type” with the type - “Select” with the below data
1)Finished Goods
2)Services
3)Raw Material
4)Consumables
5)Semi-Finished Goods
when the user selects say “Finished Goods” I want the Item code to auto-generated as FG000001 with incremental value, if they select “Services” it should be SCG0000001 and if they select “Raw Material” it should autogenerate RW000001.
please guide me. i was going through the forum, but was unable to find the right solution.
You need to create one more field of short code like FG for finished goods. User will set this field before saving. In naming series you have to use filed_name. for auto numbering.
In naming series Item use the code as below. There’s a dot between abbr and ###. Keep the dot and add number of ####. If 4 # then your item code will have max four digits. Use your field name.
Sure, here is a Example with Screenshot.
Use case - If Item Group = Raw Material, then New Item Code Generate as RM-0001.
you can also manage the Document counter in future if you want to reset.
Thank you, I did try and was able to create multiple naming rules for each options in the group, but they are not appearing in the item code field when I create a new Item. please help me
1 Select Field -
Material - (SS, MS, CS, etc in list)
1 Select Field -
Ends - (flange, threaded, etc in list)
Now based on above selection - I want Description Field to auto generate - Like if i check “Gate” and select “SS” and “flange” then the description shall display “Gate, SS, Flange”
Workout Something like this, your valuable inputs will be helpful.
I tried various scripts but unable to do so. In fact the earlier deleted script is running but the current one is not showing up or working. Can you please guide.
It looks almost like the thing I want to do. However I have a few Items Groups that I want to combine into the same number range. I created a custom field at the item group, with a selection.
In the Document Naming Rule, I would like to use that new custom field for the Rule Condition, however I cannot select that field from the list. Is there a way to use that field in the Rule Conditions? Or can I only use the Item Group field?
And is it possible to leave the Prefix field empty? I would just prefer to have a different number range for different groups. Like
Group A - Number 1000 - 4999
Group B - Number 5000 - 8999
Group C - Number 9000 - 9999
I have a custom script deleted (created on item doctype) but it still works on item form. And I tried on other browser, it still works, and i reset chrome but it still works. I have a self hosted on virtual box. In fa t the other vms also give same script but it is not in script list.