Hi, We are running into issues with the Sales or...
# suitescript
n
Hi, We are running into issues with the Sales order line sequence when created with the API. NetSuite is creating the lines its own way. No way to pass and create them in the right order. What is the standard behavior. Is there any documentation available?
b
dont expect the line field to represent the sequence/index of the item sublist
it actually the line id, which really only reliably serves to uniquely identify the line in the sales order
n
Thank you for a quick response. Is there standard documentation on this? What is the standard behavior? Is there a way to sequence it correctly? What would be the advantage if we do it?
b
the approach differs depending on if you are using standard or dynamic mode while creating the salesorder
but usually you end up adding the items you want in the order you want them
so 1st line is added first, 2nd second and so on
n
Thank you.