how we can add a return authorization button if th...
# ask-stanley-ai
n
how we can add a return authorization button if the sales order has a non inventory item
c
AI generated answer (using internal Slack threads):
To add a return authorization button if the sales order has a non-inventory item, you would need to write a custom SuiteScript. The built-in functionality of NetSuite only allows the "Authorize Return" button to appear after an invoice has been created from a Sales Order. Here's a high-level overview of how you might approach this: 1. Create a User Event script that is triggered on the Sales Order record. 2. In the
beforeLoad
function of the script, check if the Sales Order contains a non-inventory item. 3. If it does, use the
form.addButton
method to add a custom button to the Sales Order form. 4. This button, when clicked, should trigger a Client Script that transforms the Sales Order into a Return Authorization. Please note that this is a high-level overview and the actual implementation may vary based on your specific business requirements and NetSuite setup. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834725738
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826080263
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813731492
Please provide your feedback on this answer.