I need to design a function that will help me load a truck in the appropriate order. I have a SQL call that will bring back the following.
Drop 3 Frozen
Drop 3 Refrigerated
Drop 2 Dry
Drop 2 Frozen
Drop 1 Dry
Drop 1 Frozen
I need to load the truck in this order based on that information. Drop 3 gets unloaded first, Drop 2 second etc... These instructions need to be generated. As you can see they need to be grouped together based on their state. Frozen, Refrigerated, Dry etc…. Because we cool the sections of truck based on this. Im not sure how to read through and base decisions on records I have not looped through yet. Cant make it work! HELP.. It seems simple but it is not. I tried an array, but the sequence changes for each load. Its never the same.. You could have all dry, or any combination.
Load Drop 3 Frozen
Load Drop 3 Refrigerated
Load Drop 2 Frozen
Load Drop 2 Dry
Load Drop 1 Dry
Load Drop 1 Frozen
Drop 3 Frozen
Drop 3 Refrigerated
Drop 2 Dry
Drop 2 Frozen
Drop 1 Dry
Drop 1 Frozen
I need to load the truck in this order based on that information. Drop 3 gets unloaded first, Drop 2 second etc... These instructions need to be generated. As you can see they need to be grouped together based on their state. Frozen, Refrigerated, Dry etc…. Because we cool the sections of truck based on this. Im not sure how to read through and base decisions on records I have not looped through yet. Cant make it work! HELP.. It seems simple but it is not. I tried an array, but the sequence changes for each load. Its never the same.. You could have all dry, or any combination.
Load Drop 3 Frozen
Load Drop 3 Refrigerated
Load Drop 2 Frozen
Load Drop 2 Dry
Load Drop 1 Dry
Load Drop 1 Frozen