November Happy Hour will be moved to Thursday December 5th.

Class InventoryExtensions

Inheritance
System.Object
InventoryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Inventory
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public static class InventoryExtensions

Methods

CanBackorder(InventoryRecord, DateTime)

Determines whether the specified inventory of an entry is available for backorder.

Declaration
public static bool CanBackorder(this InventoryRecord inventoryRecord, DateTime requestDate)
Parameters
Type Name Description
InventoryRecord inventoryRecord

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for backorder; otherwise, false.

CanPreorder(InventoryRecord, DateTime)

Determines whether the specified inventory of a catalog entry is available for preorder.

Declaration
public static bool CanPreorder(this InventoryRecord inventoryRecord, DateTime requestDate)
Parameters
Type Name Description
InventoryRecord inventoryRecord

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for preorder; otherwise, false.