Discussions
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.