Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
How to enter a rate as a percentage (e.g. discount) with SuiteScript
Hi all,
I have searched the internet and found a few suggestions for this, none of which are working for me, so maybe someone here can help.
If I try setCurrentSublistText(), it accepts '(100%)' as an entry in the field, I get "Please enter a value for amount." because the Amount field doesn't update, even with forceSyncSourcing set to true.
If I try setCurrentSublistValue(), I get "You have entered an Invalid Field Value (100%) for the following field: rate" or "You have entered an Invalid Field Value -100% for the following field: rate", depending on what I try.
There's got to be a way that both accepts the value and updates related fields, hasn't there?
Tagged:
0