Implementing several Inventories on the same Catalog-Collection of common programming errors


  • msdn Greetings,Here’s a tricky one. In my system, orders can be shipped from several different locations: the main warehouse holds the “heavy rotation” stock, and another warehouse handles the rest of the products. One specific SKU can be available at both locations at one time. To make a long story short: if a SKU is available in the main warehouse, then you can get it in express delivery, if not and if it is available in the second warehouse, then you can get it in standard delivery, if not then it’s out of stock. So basically, the total available quantity of an SKU is the sum of both inventories.Since you can’t have several Inventory Catalogs based on the same Catalog, we have to implement this another way.According to your experience, what would be the best implementation ?I would build 2 virtual catalogs, one for each warehouse, that would only be used to attach the Inventory Catalog. Quite disturbing, and raises other issues, such as rebuilding the virtual catalogs everytime the main catalog is updated.Any thoughts appreciated!Thanks for your help.

    -Fabrice.


  • msdn1 Correct. Virtual catalogs are better then above ideas, i agree.

    By the way: Beware to rebuild the VCs, otherwise you cannot see the changes made in your base catalog.

    If you have to rebuild your catalogs frequently, then using VCs will decrease your runtime performance.


  • msdn2

    As an unsupported solution: 

            Inventory data is kept in only single table at productcatalog database.

    You may create two custom tables keeping the inventory information for each warehouse.

    You may create a view combining these two custom tables, then the view will show these catalogs as commerceServer

    inventory table.

    for triggers

    http://msdn.microsoft.com/en-us/library/aa258254(SQL.80).aspx


  • msdn3 Thanks for your (quick) replies.

    I know I can implement my own Inventory system, I was really looking for a more “standard” solution using the Commerce Server features only – if possible, of course. Implementing virtual catalogs in order to hold different inventory informations seems to make sense and is a more “Commerce Server” approach to me.


  • msdn4 Correct. Virtual catalogs are better then above ideas, i agree.

    By the way: Beware to rebuild the VCs, otherwise you cannot see the changes made in your base catalog.

    If you have to rebuild your catalogs frequently, then using VCs will decrease your runtime performance.


  • msdn5

    Alen,

    What do you mean by one method being supported and othe being unsupported? A custom call to an outside inventory system is supported while the other method you mentioned is not. Can you please explain, as it is the same subject which I’m dealing with right now.

    thanks,

    Eddie