Discussions
script not saving changes to record
At my company our customers can place orders on our website (not NetSuite based) and those items will import into NetSuite as single items of whatever they ordered. Many times however, we offer a product that is a combination of two items they might have selected on the website and we would prefer to process the order as that combo item because of shipping cost savings.
To that end I've developed a script that when deployed will look at all orders as they are created if the context is web and search for the individual items and if it finds a match it will substitute the pair item for one line item and remove the other.