Item code generation as per Item group

I am implementing ERPNext for my company. I have 6 item groups, out of which for 5 of them I have setup Item code naming in Document Naming rules and it is working fine.
Consumable - CON######
Sub Assemblies - SA######
Services -SER######
Raw Material - RM######
Products - FG######

For the 6th Item Group, Semi Finished Goods, I want the user to be able to manually enter the Item code. How can I achieve this? Any help will greatly be appreciated.

Hi,

Add one custom field and keep conditional display based on Item Group = Semi Finished Goods.

User can type manually required Item code in this custom field.

Create a Document Naming Rule using the custom field to generate Item Code.

Thanks,

Divyesh M.

We can use the Document Naming Rule for your requirement.
Set the rule based on the Item Group (refer to the screenshot).
You will need to create a separate rule for each of the six Item Group

I will try this and see if it works. Thanks for your suggestion.