Batch consumption based on Expiry Date

Material consumption based on batch expiry date. ERPNext by default selects batch with earliest expiry date from a selected warehouse. But the issue is user may not know in which warehouse items with latest expiry exist. Ideally it should select batch with latest expiry date. Or A warning on stock entry would suffice the issue as warehouse is already selected. A warning with item with latest expiry exist in another warehouse