Move products from parent items in products bundle

how we have to record in erpnext when we purchase product bundle and some times open and sell part separately ?
for example we purchase product bundle 10 x ParentItemXXX , each ParentItemXXX include 10 x ITEMXXX and then we want to open one ParentItemXXX and sell 2 x ITEMXXX .
what’s best solution ?
remaining ParentItemXXX we sell as bundle .
all items are serialised .

Product Bundle is not implemented in the purchase cycle. You can use “Repack” feature for the purpose.