Modifying custom function for record creation

Modifying custom function for record creation

Hey Everyone,

Posting here to get some thoughts about an issue. My organization uses a custom function to transfer a record from Deals to a custom module (Lab Services). They are looking to move more info over from the Deals record, but I can't, for the life of me, figure out how to modify the custom function to do so. 

Could anyone please help me decipher how this script works? Here's a screencap:



In the Deals record, there is a field labelled "RMA Number". I'm looking to have that copy over to the new record it creates in our custom Lab Service module.

Thank you!!