<@U8UAXP75H> Thanks for the insight. So I have 3 l...
# suitescript
g
@suitecloudfanatic Thanks for the insight. So I have 3 line items 0) Inventory Item (this gets skipped because current line exists) 1) The
Subtotal
line (current line doesn’t exist here, and this gets removed properly.) 2) Discount item (This is where the unexpected error occurs) It seems like I can not remove a discount item from the credit memo. Could it be something related to the type of item?
s
What do you mean by current line? I have not yet tried removing discount line via SS but perhaps you can check if you are doing the right way of removing the line by simulating how it is done via UI.
g
I believe I know what the issue is now, you hinted to it with your comment:
you could be removing a line that does not exist
i’m in dynamic mode & deleting as I’m looping. I think this is the issue
s
Ok glad to know u were able to sort it