Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Searching for Item Group members results in wrong order
We have several item groups with "Reference Start/End Lines on Picking Tickets" set to false and "Display Components on Transactions" set to true.
I'm trying to write a set of user event scripts to validate our sales orders and fulfillments, and these scripts need to detect whether a set of line items represents an item group. Changing the properties of the item group is not an option.
My approach is to run a search on items of type 'Group' to get a list of member items, and then match them against the sales order line items. However, searching through the UI or the api returns the member items in a different order from the order specified in the item group. When entering an item group on a sales order, the member items get added in the order specified by the item group. This discrepancy is preventing me from writing my matching algorithm.