Hi, I have a set of discount items (markup) that h...
# general
h
Hi, I have a set of discount items (markup) that have defined a negative percentage rate to discount, lets say that one of those discount items has a rate of -5.0%. I'm trying to insert those discount items in a Sales Order via SuiteScript 2.0 but when it is added to the item sublist the rate is added as a positive percentage of 5.0%. I have tried to set the price level to Custom and set the rate as a negative percentage but got the following error "You have entered an Invalid Field Value -5.0% for the following field: rate" NetSuite allows setting the negative percentage in the UI. Not sure what I'm doing wrong.
e
hi, not sure if I got the right picture, but...if you shall set in the rate-field, only the "number"(w/o the "%"-symbol). rate-field accepts number-data
k
You can use record.SetText({ fieldId: "discountrate", text: "-10.0%" }); However, if the user has their negative number preference set to
(100)
then I don't think you can do this programmatically.