Allocation priority by qty ordered vs qty in location?

Is it possible to designate in X3 that when a customer orders x number of a product that it will look at location 1, but if it will deplete the stock to say 20% then it moves on to location 2 rather than deplete the stock in location 1 or have a split stock situation?

We are on v11.