RE: Auto Close related transactions with a Sales Order
Is there a way to auto close a Return Authorization when I close the Sales Order that’s related/linked to it? Been searching for a use case, no luck. TIA
Andy_CLG – You should deploy the User event script to close all related records as soon as you close the Sales order.
Actions:
- Create User event script that triggers on Afterrecord submit an event
- Event type: edit, Xedit (script or web service), whatever event you want to.
- Condition: check status equal close then trigger
- Check related records and close.
- Make sure to close each line to close the record.
Hi Kevin, I get the logic of how you wanted it to execute, but the interpretation in suitescript, that I’m quite struggling right now. Do you happen to know a format for it? I’m still trying tho, I would appreciate any help.
Thank you!