Open ShawnTalbert opened 2 years ago
the simple answer that handles many use cases is to just loop backwards.
i.e. use lodash _.forEachRight
or similar xxxRight
methods. This should preserve indexes as it steps backwards through a line collection.
If you have a need to remove multiple lines from a record sublist, it can get tricky since NetSuite reassigns line indexes.
This is a spike to give thought to how we might make this easier for users via NFT.