Hi everyone, is it possible to remove a line on th...
# suitescript
d
Hi everyone, is it possible to remove a line on the item receipt using SuiteScript? I already tried the following but it didn't work: 1. Removing the line, probably because IR is using a static sublist 2. Unchecking receive checkbox I'd appreciate your response. Thanks!
I have identified the root cause of the problem I am encountering. When setting the “itemreceive” line field to “false,” I set the values of the other line fields as well, as they are included in the data. The exact reason for this behavior is unclear, as there is no error message indicating the cause. However, when I modify the values of the other line fields, the line is prevented from being deleted. Solution: To remove a line from an item receipt, set the value of the “itemreceive” field to “false” and refrain from modifying the other line fields in the same line; otherwise, it won’t work.
n
Yes, there's no reason to alter the other data. Bear that in mind for situations like closing lines on a transaction, removing them from a fulfillment or un-applying them 🙂
d
Thanks for the additional info. It happened because I was using a generic library I built to update a record by providing a JSON data, and it was the first time I encountered such a scenario. Now, it is being handled in the library itself.