Is there a way in 1.0 to remove invoice lines when...
# suitescript
n
Is there a way in 1.0 to remove invoice lines when billing from a sales order? I don't want all the lines to come over from the Sales Order. Not sure if it can be done on beforeLoad
d
It cannot be done on beforeLoad but yes, you can remove lines in 1.0
n
@dcrsmith is there a way to do it without doing aftersubmit or beforeSubmit? I need to remove a couple lines that are on the Sales Order before invoicing, but not delete from SO
d
Sorry @Nicholas Williams, I was incorrect (partly). • Data cannot be manipulated for records that are loaded in beforeLoad scripts. If you attempt to update a record loaded in beforeLoad, the logic is ignored. • Data can be manipulated for records created in beforeLoad user events. If that doesn't work you would need to create a client script to do the work.
n
thanks @dcrsmith i figured it out. I was trying to remove the lines within a loop so i got the id's of the lines i needed to remove and then after the loop removed them in reverse order and that worked.
💯 1