Alternative Product: nothing in inventory

Hi,

If the alternative product is set up with “Nothing in inventory”, the calculation is made by AX taking into consideration all the company’s warehouses and I want to calculate for availability only for the sales line warehouse.Can anyone tell which class used behind this process or Is there any way to do it.