This is Arjun from CGI. We have integrated EPI 7.5 with our application. i have created a custom tab in Catalog Management > Catalog > Currency. Iam able to fetch warehouses in Dropdown. On Selection of Warehouse from Dropdown, i want to fetch Inventory of that selected and warehouse and selected currency . Actually, i have decompiled MediaChase.ConsoleManager.dll and Opened code for Mediachase.Commerce.Manager.Apps.Catalog.Tabs. WarehouseInventoryEditTab code. i have verified the same code for Inventory fetching in Warehouse selection. I have tried to use " CatalogEntryModel model = CatalogEntryModel.GetModel(context);" in my Custom Tab Code. But, the problem is am unable to call CatalogEntryModel from my code. because, " CatalogEntryModel" is declared as "Internal" Access Modifer and Selected Currency Value is stored in Session in CatalogEntryModel. Can any one please suggest how to retrieve Inventory for selected warehouse and currency in Commerce Manager.
Note: Please let me know asap, becuase we are having SEV2 issue, that need to fixed in April 16 Release for PROD.
Many Thanks in Advance.
You can always use IWarehouseInventoryService to get the warehouse inventory, without relying on CatalogEntryModel.
Hi Quan Mai,
Thanks for your Reply. If i use IWareHouseInventoryService.Get, it accepts CatalogEntryId and Warehouse. So, where do i get CatalogEntryID in CatalogManagement > Catalogs > Currencies. That CatalogEntryId is stored session object which is in CatalogEntryModel
You should be able to get the CatalogEntryId by ManagementHelper.GetIntFromQueryString("catalogentryid");