use getSublistText on the rate
# suitescript
b
use getSublistText on the rate
👍 1
w
unfortunately that API was not available in beforeSubmit.newRecord
b
you may be stuck with your method then
i guess you could do the math on the matching item to see if the discount rate times the item amount equals the discount amount
thats a lot of work for to handle an ill advised scenario when someone edits the amount to not match the rate