I'd be grateful of any help you might be able to offer on this one . . . . .
I'm trying to track down the on hand and available stock by item dimension
and am drawing a blank. Basically I'm going from the inventdimension
combination to the inventsum table, using the inventdim ID and the itemID.
The strange thing is that there are inventdimID's that exist in the inventsum
table but do not cross reference to the inventdimcombination. Does anyone
know if there is an intermediary table in between please??
Cheers
Jon
InventSum has aggregates for both item and stock dimensions.
InventDimCombination has only item dimensions (stock dimensions are
refined). So, if item is tracked by color and warehouse, in
InventDimCombination you will have only color and InventSum will keep onhand
data by color and warehouse. And InventDimId will be different in these
cases.
The main reason we're trying to figure out the relationship is that we're
pulling out the data using SQL, and posting it using the business connector
and the various related classes. Extracting the data using the business
connector was significantly slower than using a SQL query, hence me trying to
establish which InventDimId the InventSum is referencing?? Is there any
relationship to other tables when stocking within locations, etc?
Regards
Jon
"Glibs" wrote:
> .
>
The reason that there are inventDimId's in inventsum that aren't in
inventDimCombination is because in inventsum, there are dimensions that are
not present in InventDimCombination.
InventDimCombination only has Config/Size/Color (= item dimensions), while
inventSum also has storage dimensions (like site, warhouse, etc).
You have to know that the InventDimId represents *one combination* of
inventory dimensions.
Eg:
Color 01 + Size M (+ Config is blank)-> InventDimId 000001
Color 01 + Size M + Config 02 -> InventDimId 000002
Color 01 + Size M + Config 02 + Site 01 + Warehouse 08 -> InventDimId 000003
You see that you can't just join on inventDimId, even though Color + Size
are the same.
You'll have to join on the InventDim table (= the intermediary table you are
looking for), only on the dimensions that are important to you (and
inventdimid ofcourse).
Hope this helps.
Kind regards,
Klaas.
----------------
http://www.artofcreation.be