Requirement scenario:
Sales e-commerce, some of which are sold by agents (the company does not manage Inventory, so after the establishment of direct delivery by the corresponding supplier)
Solution:
When so generates do, the logic for obtaining the Source Inventory is so -- shop -- warehouse -- stcok location
Logic for obtaining the target location: So -- shop -- warehouse -- out location = chain ==> customer location
Based on the above logic, create a separate shop, warehouwe, and stock-location and out-location for each partner of our products on behalf of them. Pay attention to link them to the customer location.
In this way, the source and target location of the invoice after confirming the order are: Agent-stock-location and customer location.
Create a repository Management source. You can only view the data of this warehouse. it is OK to deliver the goods to the agent staff.