on 09-12-2015 12:25 AM
Hi, we're using 2007.
When I need to close multiple item lines in a Sales Order, I'll need to do this:
So I just want to confirm if this is the only way to do it? (if I don't call Update() in the loop, it will error out)
And secondly, do I need to call GetByKey() in the loop? Or I can do it first before entering the loop?
Please advise.
Thanks.
Hi Tjandra,
I'm using 9.0, but I believe that work equals.
You need this:
1 Call GetByKey
Foreach line to be deleted
Call SetCurrentLine()
set LineStatus = bost_Close
End Forecah
2 Call Update()
You just need call GetByKey to load your document one time, and after you change the status of your lines, you just call Update() one time too.
Regards,
Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.