Afternoon all, anyone ever removed a groupitem fro...
# suitescript
a
Afternoon all, anyone ever removed a groupitem from an estimate (Loaded dynamicaly) with .removeLine ? I'm getting an error: "You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist." from what should be working: salesQuote.removeLine({ sublistId: 'item', line: i }); Where i = 1 (second item in the list)
c
you may need to check if the line is the start of a group or end of a group and not act on those lines.. i think its the column "type"
a
Thanks, I was trying not to loop inside a group item to remove the ingroup items. Wehn you commit a group line item it builds in the group however removing the group item just fails. I opened a ticket to see whats up with that.