I have a piece of code below that works. HOWEVER, now that I've seen the results I realize that it doesn't work quite the way I want it to and have spent the last 12 hours trying to modify it without success.
Just so you have some context, I'm trying to get all of the purchased parts and qtys...