you should be creating, setting the value and comm...
# suitescript
e
you should be creating, setting the value and committing the line item all inside those conditions, there is no reason to have them outside of it