Hi, we're using 2007.
When I need to update as well as to close multiple item lines in a Sales Order, I'll need to do this:
- Call GetByKey()
- Call SetCurrentLine() // point to item to be updated
- set Quantity = 10 // for example updating quantity
- Call Update()
- Call GetByKey() // to reload the document
- Call SetCurrentLine() // point to item to be closed
- set LineStatus = bost_Close
- Call Update()
So I just want to confirm if this is the correct way to do it, ie. calling GetByKey doing Update() 2 times?
Please advise.
Thanks.