Exclude stock in a specific warehouse from selling (projected qty)?

Hi everyone,

we’re using ERPNext in an e-commerce setup, and we synchronize the projected quantity to external marketplaces like eBay. Now we’d like to handle returns in a way that they do not increase the available stock for selling.

Our idea:
Returned items should be booked into a dedicated Returns Warehouse, which should not contribute to the projected quantity used for marketplace synchronization.

Main question:
:point_right: What is the best and cleanest way to exclude stock from a specific warehouse from the projected quantity or from being considered “available for sale”?

Follow-up questions:

  • Is it best practice to filter this out during the sync (custom script)?
  • Or is there a setting in ERPNext to define which warehouses contribute to available stock?
  • Any experience with similar setups?

Thanks a lot for your input!