Group locations under the first requested location when computing stock quantities
This reduces the number of unnecessary intermediary results.
Closes #8594 (closed)
This reduces the number of unnecessary intermediary results.
Closes #8594 (closed)