When creating a document, let the stock of each warehouse appear and not just the total so that you can choose the corresponding warehouse in the document.