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..