Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
How to change the Price Level when the Customer field is changed in Sales Order
Hello everyone!
I'm developing a script that should change the value of the Price Level field in the Items sublist when the customer field is changed in Sales Order.
(See Script_SetPriceLevel.txt)
What needs to be done: In many Sales Orders, in the Items sublist, there are items with values set for Price Level = "2023 Price List". When someone changes the customer, it is necessary to save these values in the fields and prevent NetSuite from changing them to other values.
As I noticed, NetSuite automatically runs a function that changes several fields, including the Price Level, based on the selected customer. As you know, for each customer, you can choose a default Price Level that will be set for all items in the list.