Generate Item Code Based On Custom Logic

Generate Item Code Based On Custom Logic

Add this Custom Script to the item's script so that it runs right before the item is saved, generating a new item code.