We have a script created by a consultant that, on afterSubmit, sets the Bill To and Ship To dropdowns on a Sales Order back to whatever they were on beforeSubmit, as a workaround to what they say is an NS defect. The defect is described as "ship address and bill address reseting to custom when ever line item is changed".
This workaround is causing problems on Sales Orders that have "Custom" selected on Bill To or Ship To, because when the SO loads in NetSuite and "Custom" was selected last time it was saved, it changes from "Custom" (ID -2) to blank/empty on load. Then on submit, this workaround script sets Bill To's blank value onto Bill To, and I think that erases the address in the Bill To address text box. Maybe.
I have the support case number as it was written in the script's comments, but since the consultancy submitted the support case, we don't have access to it to see details about it or find out if the defect is still there or if it has been resolved.
Has anyone else heard of or experienced the problem this script is working around?
I'm certain the script's workaround is causing our problem with Custom Bill To addresses on Sales Orders going blank after someone opens them for editing and saves them, because I can reproduce the behavior, but it stops doing it if I inactivate the script.