Class InventoryExtensions
Inheritance
Namespace: Mediachase.Commerce.InventoryService
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public static class InventoryExtensions : Object
Methods
Adjust(IInventoryService, InventoryChange)
Calls Adjust(IEnumerable<InventoryChange>) with a single Inventory
Declaration
public static void Adjust(this IInventoryService service, InventoryChange change)
Parameters
Type | Name | Description |
---|---|---|
IInventory |
service | The service to call. |
Inventory |
change | The change to apply. |
Delete(IInventoryService, InventoryKey)
Calls Delete(IEnumerable<InventoryKey>) for a single Inventory
Declaration
public static void Delete(this IInventoryService service, InventoryKey inventoryKey)
Parameters
Type | Name | Description |
---|---|---|
IInventory |
service | The service to call. |
Inventory |
inventoryKey | The key of the inventory record to delete. |
DeleteByEntry(IInventoryService, String)
Calls DeleteByEntry(IEnumerable<String>) for a single catalog entry code.
Declaration
public static void DeleteByEntry(this IInventoryService service, string catalogEntryCode)
Parameters
Type | Name | Description |
---|---|---|
IInventory |
service | The service to call. |
System. |
catalogEntryCode | The entry to delete all inventory for. |
DeleteByWarehouse(IInventoryService, String)
Calls DeleteByWarehouse(IEnumerable<String>) for a single warehouse code.
Declaration
public static void DeleteByWarehouse(this IInventoryService service, string warehouseCode)
Parameters
Type | Name | Description |
---|---|---|
IInventory |
service | The service to call. |
System. |
warehouseCode | The warehouse to delete all inventory for. |
GetEntryTotals(IEnumerable<InventoryRecord>)
Groups the elements in source
by catalog entry code, and aggregates
the inventory values for each group into a single Inventory
Declaration
public static IList<InventoryRecord> GetEntryTotals(this IEnumerable<InventoryRecord> source)
Parameters
Type | Name | Description |
---|---|---|
System. |
source | The collection of Inventory |
Returns
Type | Description |
---|---|
System. |
A collection one Inventory |
Remarks
All dates and the Reorder
If any value in a group has a Is