I need this ofor a stock application.
I need to get all the stock locations between the first location selected (StockIDFrom)
and the last location selected (StockIDTo).
A Stock location can be created at any given time and can be a location between the From and To Locations. Therefore I cannot subtract the ID of the from and the to location to get the count of all locations inbetween those 2.
So i need to run a function that finds out whtich locations are between them.
Practically:
fromLocation = WAREHOUSE1 - ZONE1
TOLocation = WAREHOUSE1 - ZONE2
now you have just 2 locations between these being ZONE1 and ZONE2
If an administrator adds a location WAREHOUSE1 - ZONE1 - B and
WAREHOUSE1 - ZONE1 - C
the situation changes and you will get 4 locations
SO if a want to display the number of locations between the From and To i will need to be able to calculate this.
I hope it is all clear?
TIA
BEDN