Click or drag to resize

AvailabilityExtensionsCalculateAvailableToPromise Method

Calculates the available to promise.

Namespace:  Aloe.EnterpriseOne.Model.Logistics.Inventory
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static decimal CalculateAvailableToPromise(
	this IEnumerable<ProjectedAvailability> projectedAvailability,
	IEnumerable<CurrentAvailability> currentAvailability,
	DateTime calendarDate,
	Product product,
	Store store,
	Lot lot,
	bool anyLot
)

Parameters

projectedAvailability
Type: System.Collections.GenericIEnumerableProjectedAvailability
The projected availability.
currentAvailability
Type: System.Collections.GenericIEnumerableCurrentAvailability
The current availability.
calendarDate
Type: SystemDateTime
The calendar date.
product
Type: Aloe.EnterpriseOne.Model.General.ProductsProduct
The product.
store
Type: Aloe.EnterpriseOne.Model.Logistics.InventoryStore
The store.
lot
Type: Aloe.EnterpriseOne.Model.Logistics.InventoryLot
The lot.
anyLot
Type: SystemBoolean
if set to true [any lot].

Return Value

Type: Decimal

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableProjectedAvailability. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionproduct
See Also