OM extensions : how a loop on sales order lines is sorted by ?
Content
Hi all,
I have created an extension which loops on sales order lines with below classic code :
def lines = header.getAttribute("Lines"); while( lines.hasNext() ) { def line = lines.next(); ....
Line 2 is fetched before line 1... How is it possible ? What the sort used by "next" to get line data ?
Is it possible to change that order (like an "ORDER BY")
Thanks
Samuel
Version
20C0