I am getting a syntax error from a Client Script (applied to Sales Order) when I press the
Create Up-sell Order button on a Contract record (uses the contract bundle).
The script does not have a syntax error because it works for its intended purpose on the SO record. Has anyone seen this before?
The error states #5 which I believe is line 5 of the script
define(['N/log', 'N/currentRecord', 'N/search'], (log, currentRecord, search) => {
I didn't expect the script to be triggered at all, let alone have a syntax issue when it clearly doesn't as it executes perfectly on the sales order.