Hi, can I ask if someone can help me setting the d...
# suitescript
m
Hi, can I ask if someone can help me setting the discountitem and discountrate in the header of the Sales Order? There are two issues I am getting. First issue: setting discount item. I am getting the error message below through the code but if I create it in the UI with the same customer and discount item it gets saved fine. “Please specify a discount item for this customer”, Second Issue: Setting % value Getting the error message below if i set a percentage value on discount rate “You have entered an Invalid Field Value -50% for the following field: discountrate”, I can send a code snippet if needed. Thanks in advance..
p
yes, we need the code
m
Untitled
l
I'm not sure it'll solve the issue but try to set the percent field as -0.2
e
I believe you want to use setText and not setValue