Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Script to re-order transaction line items
Re-ordering existing transaction line items is not currently possible in the UI so I'm considering scripting it. (the goal being to drive output in a quote/estimate)
I suppose it would be possible to automate the manual task of re-keying all items to get your desired order:
[LIST]
[*]Read all lines into an array
[*]Sort array by desired method (perhaps identified elsewhere)
[*]Delete all lines
[*]Add all lines in order
[/LIST]
This seams a bit much... it also increases maintenance were we to simply add/remove column fields in the future.
I notice via ODBC "Transaction_Line_ID" and "Transaction_Order" which appear to correlate with the order in the UI. It would be great if we could set this value via script, though I suppose this is not possible.