Pick Release from two different subinventory based on availability
If quantity available is sufficient, enable release from subinventory SPARES. If quantity available is not sufficient, then check quantity available in subinventory WHFG. If quantity available in WHFG is sufficient, enable the release from subinventory WHFG.
Is above logic possible?