Quintiq file version 2.0
|
#parent: #root
|
Function CalcDerivedMinQuantity
|
{
|
TextBody:
|
[*
|
// Min quantity constraint for either input type.
|
value := 0.0;
|
if( this.IsDuration() and this.MinDuration() > Duration::Zero())
|
{
|
duration := this.MinDuration();
|
value := CampaignType_MP::GetQuantityBasedOnduration( this.MinOperationInCampaign(), duration );
|
}
|
else if( this.MinQuantity() > 0 )
|
{
|
value := this.MinQuantity();
|
}
|
this.DerivedMinQuantity( value );
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|