Shannon
03/13/2025, 4:10 AMCeligo AI
03/13/2025, 4:10 AMAI generated answer (using internal Slack threads):Based on the conversations, it appears that there isn't a built-in feature in NetSuite to track deleted lines from a sales order. However, there are several suggested workarounds: 1. Utilize a script to determine if any lines were added or deleted from a sales order. This could be done using the client script event of "validateDelete" to copy the line information to a custom field when a line is removed. 2. Create a custom record that stages incoming orders and performs some validation. This custom record could be used to determine what was deleted if a user deleted an item from a sales order. 3. Encourage people to ‘close’ lines instead of delete. The 'close' field is available at the sales order form line level and might be hidden under form customization. 4. Calculate the number of deleted lines in a transaction in a Saved Search as
MAX({line}) - MAX({linesequencenumber})
. However, it's important to note that these fields do not necessarily increment by 1 on all transactions.
5. Consider creating a custom record to capture more information like who deleted/when/what item was deleted/quantity/custom fields/whatever. You could even ask for a "why" in a popup. This could be done in the validateDelete client-side method. You can prompt for a "why", capture it and store it all in that method. You can get all of the info you need other than the specific "why" the user is deleting the method so that's all you need to gather.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/13/2025, 4:10 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844328761
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837098241
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82833308
Celigo AI
03/13/2025, 4:10 AM