so we utilize Item Groups. When running a saved se...
# suitescript
r
so we utilize Item Groups. When running a saved search to get SO line items, (
mainline=F
), if an SO has both physical inventory and a group SKU, is there a way to get just the physical inventory and group skus, and not the components of of the group? ex: if SO is
Copy code
ITEM           ITEMTYPE
GRPITM1        Group
PRT1           InvtPart
PRT2           InvtPart
End of Group   EndGroup
SKU334         InvtPart
SKU5453        InvtPart
then what I would like is for the saved search to return
Copy code
GRPITM1
SKU334
SKU5453
I'm working on coding a solution that looks forward for any "EndGroup" line items, then backtracks, but I'd prefer a cleaner solution if a saved search can account for it