Discussions
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?