RE: document approval request send automatic
Hey Jorge,
1st immediately after saving the order i.e. with a dialog box asking if the approval shall start and then executing the code from above.
- I believe There Shouldn't be any manual intervention of Users if you are running something on a Job Queue Level. It should run on some conditions/Status.
2nd for every order in Status "open" which is older than 1 hour. This gives the possibility to edit the order before approved!
- This one be an option to execute but instead of an Hour if you will play on some other logic then it will be better as every time and for every order system will have to first check the Order and then calculate time. Though job Queues execute very fast but still on performance point of view you may think once on this.
Thanks
Blog - rockwithnav.wordpress.com