Quintiq file version 2.0
|
#parent: #root
|
MethodOverride GetBaseWIPValuePerQuantityPerDay (
|
AccountAssignment accountassignment
|
) declarative remote as Real
|
{
|
TextBody:
|
[*
|
// 11772 sum the costs of the direct children
|
|
value := 0.0;
|
|
hasperiodtasks := this.NewSupply( relsize ) > 0
|
or this.DependentDemand( relsize ) > 0;
|
|
duration := guard( this.Period_MP().DurationInDays(), 0.0 );
|
|
if( hasperiodtasks and duration > 0 )
|
{
|
value := this.GetBaseInventoryValuePerQuantity( accountassignment ) / duration;
|
}
|
|
return value;
|
*]
|
}
|