WorkOrderCalculateMaterialSupplyCoefficient Method (IEnumerableCurrentAvailability, IEnumerableProjectedAvailability) |
Returns the material supply coefficient wich represents the ratio of required to available materials for this work order.
The coefficient is 1 when the quantity of required materials is equal to available quantity.
Namespace:
Aloe.EnterpriseOne.Model.Production.ShopFloor
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic decimal CalculateMaterialSupplyCoefficient(
IEnumerable<CurrentAvailability> currentAvailability,
IEnumerable<ProjectedAvailability> projectedAvailability
)
Public Function CalculateMaterialSupplyCoefficient (
currentAvailability As IEnumerable(Of CurrentAvailability),
projectedAvailability As IEnumerable(Of ProjectedAvailability)
) As Decimal
public:
Decimal^ CalculateMaterialSupplyCoefficient(
IEnumerable<CurrentAvailability^>^ currentAvailability,
IEnumerable<ProjectedAvailability^>^ projectedAvailability
)
member CalculateMaterialSupplyCoefficient :
currentAvailability : IEnumerable<CurrentAvailability> *
projectedAvailability : IEnumerable<ProjectedAvailability> -> decimal
Parameters
- currentAvailability
- Type: System.Collections.GenericIEnumerableCurrentAvailability
The current availability preloaded for the material products and stores. - projectedAvailability
- Type: System.Collections.GenericIEnumerableProjectedAvailability
The projected availability preloaded for the material products and stores.
Return Value
Type:
DecimalThe material supply coefficient/percent
RemarksThe algorithm of coefficient calculation is as follows:
1. For each work order item ingredient the ratio of required to available quantity is calculated
2. The total coefficient for work order item is the smallest coefficient from work order item ingredients
3. The total coefficient for work order is the smallest coefficient from work order items
See Also