...
If the Inventory Item Code needs to be updated follow the process of deactivating the existing item then uploading a new Inventory Item to the required Inventory Group.
Settings → Inventory Items → Search for the required Inventory Item → Open the Inventory Item
...