- Code responsible for setting the Reason text to the item’s Description field. It came from the core SCA backend suitescript ReturnAuthorization.Model.js – we can comment out this line instead: sca/Advanced/ReturnAuthorization/SuiteScript/ReturnAuthorization.Model.js#L252-L257
- Modify the UI to hide the Reasons selection for each line,
instead display only at the top of the list. (screenshot 2)- When selecting a Reason, it should also apply to the selected lines. Make use of the
applyReasonHandler()method:
sca/Advanced/ReturnAuthorization/JavaScript/ReturnAuthorization.Form.View.ts#L281-L291
The same behavior when the Apply to All button is clicked (screenshot 3) but this button will also be hidden as we no longer need it.
- When selecting a Reason, it should also apply to the selected lines. Make use of the
- Reason will be saved to RMA record custom body field
custbodyvvs_return_codes



We have Updated the Return to have one Reason for a RMA and that will be saved in on custom field Adding the extension part along with and the final result


