you can write the quantity of goods for a specific warehouse in the product additional field, for this, in the automation for products, set the action "Calculate value by formula" in it, variables are available that are responsible for the free balance in each warehouse -
https://prnt.sc/w0gvwb , write down in the additional field the balances for a specific warehouse and select this additional field in action