Stock from other locations are not prioritized

When using distribution relations, which is controlled by a parameter, the stock from other locations that is higher than other supplies are not prioritized.

2221630