Posting and Financial Analysis of Shared Physical Warehouses
The purpose of this page is to help you understand how to solve an challenge proposed by an ERP Academy member. Here is the question:I have multiple organizations that share multiple warehouses. I want to be able to perform financial analysis based on the warehouse independent of (or spanning across multiple) organizations. How do I do this in iDempiere?
The challenge with this situation is that iDempiere Warehouses are owned by a single iDempiere Organization. This means that you need to create each physical warehouse in each iDempiere Organization. If multiple Organizations share the same physical warehouse, then you will need to duplicate the warehouses in each iDempiere Organization. Here is an example with 4 physical warehouses and multiple Organizations sharing them to demonstrate. Note that WH1 is repeated multiple times (one for each Organization that uses that warehouse).- Org1
- WH1-1 (for Org1)
- WH2-1 (for Org1)
- WH3-1 ...
- WH4-1
- Org2
- WH1-2 (for Org 2)
- WH2-2 (for Org 2)
- WH3-2 ...
- WH4-2
- ...
- I believe the answer is to create an entity (say a Distribution Center) concept in iDempiere to represent your physical warehouses. Then, update each iDempiere warehouse to point to its Distribution Center. Said another way, the Distribution Center represents your physical warehouses and the iDempiere Warehouse represents your logical or virtual warehouses inside your physical warehouse.
- Log in as System Admin to create a new window/table called Distribution Center (name, description, etc...)
- Log in as GW Admin to create a Distribution Center record for each physical Warehouse you have.
- Log in as System Admin to Add the Distribution Center field to the Warehouse and Locators window => Warehouse tab. Make it mandatory.
- Log in as System Admin to Update all the documents that post to contain this field. See below for example. Note: you can add the Distribution Center to a document as a Column SQL (ColSQL) to make the propagation logic much easier.
- Use these instructions to add Distribution Center to the fields that post to the GL.
- Test a couple of documents to confirm you can see the Distribution Center in your postings.
- Note: Inventory Move will require special posting logic because each line will have up to two Distribution Centers if you allow the Inventory Move document to transfer product between them.
- Tie/tag each iDempiere Warehouse to the Distribution Center (physical warehouse). In the above example, you would update each WH1-x record to point to the same Distribution Center.
- Pack in the 01_SYSTEM....zip pack using the System Admin role
- Reset your Cache (Cache Reset process)
- Pack in the 02_GardenWorld...zip pack in using the GardenWorld Admin role
- Restart the iDempiere Application Server
- Create a GardenWorld => Distribution Center record
- Update a Warehouse record to point to your newly created Distribution Center
- Create and complete a Purchase Order using the desired Warehouse
- Create, complete and post a Material Receipt for the newly created Purchase Order
- View the posting to see the Distribution Center.
- This scenario is solved with some reasonable complicated iDempiere tools. If you are new, I recommend you reach out to me or someone in the ERP Academy for assistance.
- Do not deploy the above in a production system. Always play in a test environment before modifying a production system.