Im trying to use this script to swap an item if it...
# suitescript
b
Im trying to use this script to swap an item if its added to a Sales Order. My script is changing the item correctly, but it not committing the line. Any thoughts?
j
Are you trying to replace the item on the current line? I thought selectNewLine would add a new line item. Have you tried just removing the selectNewLine call and doing currentRecord.setCurrentSublistValue... to change the item