Client Script : what's the best approach for evalu...
# suitescript
s
Client Script : what's the best approach for evaluating a new sales order line item before it gets committed to potentially makes some updates to the line and then add an additional line item if that item id = x?
b
use a validateLine to makes your updates
use a sublistChanged to add your new line
make sure that other client scripts work, adding a new line tends to confuse line numbers
a
The best approach would be to avoid Client Scripts all together, but if that is not an option then what @battk said...^^^