Hi Guys
I need some help in conquering something I've been working on for a while. I'm in the process of creating an ordering spreadsheet for my business. To simplify things my business owns various warehouses and branches, so essentially we source to ourselves. We have multiple warehouse's and this is where my problem arises. There is a rule when a branch requests stock from a warehouse.
Example
Branch A : Needs 100 Qty of product X
Warehouse1: has 70 Qty of X
Warehouse2 has 50 Qty of X
Warehouse3 has 100 Qty of X
Warehouse4 Has 60 Qty of X
I need a solution that suggests using the 70 units from Warehouse1 and using Warehouse2 to fill the deficiency to make 100 units total. The logic must also indicate how many units to take from the warehouse. In this case it would be the whole stock from warehouse1 and a partial amount warehouse2. The stock is based on free stock so there won't be anything in transit etc.
The logic gets more complicated when meeting a branch request goes through a logical process like below.
If WH1 can meet the need of the branch = ok
If WH2 can meet the need of the branch = ok
If WH1 combined with W2 can meet the need of the branch = ok
If WH1 combined with W3 can meet the need of the branch = ok
etc
I think you can see where this is going.
Only 2 warehouse's in total can be used to meet the branch requests. WH1 and WH2 must be given every chance meet the request before the logic decides only WH3 or/and WH4 can meet the branches request.
My spreadsheet is in line format so I could have 50 products in column A, the level of stock I need to order in column B, the warehouse levels in columns C-F and the last columns G-J. each column in G-J would represent a warehouse and qty to request from this warehouse. If the complete request could not be fulfilled then G-J columns would show blank.
Any light shed on this would be greatly appreciated.
Bookmarks