Hi Elizabeth,
I am not sure how you want the system to decide which option to choose, but the "quota arrangement" functionality has different alternatives for such automatic switch, e.g. dependent on lot size, proportional, up to certain limit, etc.
BR
Raf