One of my customers wants to rename several items in his database.
I created a table with two columns: “Old Code” to store the current item codes and “New Code” to store the new cpdes my cutomer wants to use.
I created a codeunit with the following code in the OnRun trigger:
IF recNewItem.FINDSET THEN BEGIN
IF recItem.GET(recNewItem."Old Code") THEN recItem.RENAME(recNewItem."New Code");
My question is: would my code affect the posted documents, for example the posted shipment, the posted invoices,etc…
Would it change the item codes there as well or I need to write more code to do it???