Trying to have it such that a modifier is added to...
# suitescript
s
Trying to have it such that a modifier is added to the shipping cost of an invoice AFTER a new line item is created. Would using validateLine be a good approach?
b
sublistChanged is safer, its runs after the line is added
validateLine runs right before, which runs the risk of another validateLine preventing the line from being added
s
Makes sense. Thank you
n
@battk what is the best way to create a flag for a sublistChanged operation so it doesn't loop forever?
or maybe I can use fieldChanged and just write to the sublist since all i'm trying to do is update a rate...
n
fieldChanged does exactly what I need tho
but thank you!