Return order with parts instead of whole product?

I own a project where I need to use the Return Order function in AX. For complete items, this function works well. However, I don’t know how I can make a return order for just a part of a whole product (like a customer returns a hard disk from his laptop instead of his complete laptop).

I have to manually add items to the return order, and manually look up prices and discounts for it. Is there a possibility to automate this?

This little project is part of a bigger project where barcode scanning is used so everything will become more automated in the future.

No you cannot automate it because you have never sold the item at this level, you need to manually add in the part return.