Hi Jey
EWM gives you flexibility in defining your own picking strategy based on fields in /SCWM/AQUA (quant table). Define stock removal rule with field QUAN(available qty) with descending sorting. This will sort all quants selected based on decreasing order of available qty. This configuration will come close to meeting your requirement without any development.
Best Regards
Phani sai MN