Q: Anyone have a good solution (or can think of on...
# general
h
Q: Anyone have a good solution (or can think of one) to be able to show removed line items on Sales Order Transactions? Currently the only way for us to tell when an item has been removed is to review the System Notes for a Change event to the 'Total'. To keep track of removed line items, we have Care reps just add the SKU to the memo but as you know it's not ideal to rely on users for good data. Ideally we could build a solution to automatically record line items that were removed. This will help us keep track of NILs and Preorder items that get cancelled, etc..
e
This is possible with scripting. The client script event of "validateDelete" could be used to copy the line information to a custom field when a line is removed.
🙏 1
k
I could see that working - I'd also consider creating a custom record so you can capture more information - like who deleted/when/what item was deleted/quantity/custom fields/whatever - and maybe even ask for a "why" in a popup.
🙏 1
Then it's its own little sublist to be looked at.
h
Thank you both for the info/comments! @KevinJ of Kansas how would you build a pop-up form entry on removal of an item? Suitelet functionality?
c
you'd do it in the valdiateDelete 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 thats all you need to gather. No form required since you already have access to the record.
h
@creece thanks! we will definitely look into using that method.