Challenge : (can't describe it in header)
Here it is.
Say you have a collection of car objects:
- Type Descriptor TypeID
FORD ESCORT 3
HONDA CIVIC 1
HONDA CRX 1
TOYOTA 4RUNNER 2
TOYOTA CAMRY 2
Say this collection is called MySaleCollection, which contains encompasses a sale containing cars from any amount of manufacturers.
Challenge:
Write a function that would take the MySaleCollection and generate a collection of CarCollections with EACH CAR COLLECTION ONLY CONTAINING cars from the same manufacturer...
so the function returns a collection of collections... with each collection only containing that certain manufacturer's cars....
The goal is to pass an Invoice into this function, and have the function return a collection of seperate Purchase ORders.. each only containing cars from that manufacturer...