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 Rookie Asked on June 4, 2021 in Order Management.
Add Comment
1 Answers

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.
Beginner Answered on June 7, 2021.

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!

on June 7, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.