I am trying to create a script that will take the Grand Total of a Quote and update the Amount of the Potential to match. I am starting with the example script provided by Zoho to update a amount field in a company based on Won potentials.
The issue I am having is that I am getting compiling errors when I try to Save and Execute my script in the builder. I don't understand why I am getting the error and as you can see in my attached pictures if I change some formatting the exact error changes to a different part of the code but is still on Line 6. I am not sure what is going on. I have tried different browsers just in case it was an odd Chrome issue.
Any input would help for this issue or if I am going down an incorrect path for this result.