Quintiq file version 2.0
|
#parent: #root
|
Method ResetHasUserQuantity (
|
Boolean isstartoptimizerrun,
|
const RunContextForCapacityPlanning runcontext,
|
LibOpt_Scope scope
|
)
|
{
|
Description: 'Set HasUserQuantity to false'
|
TextBody:
|
[*
|
//reset manual plan on both period tasks and dependent demand
|
if( this.HasUserQuantity() or this.HasDependentDemandUserQuantity() )
|
{
|
this.Update( 0.0, false, scope );
|
|
traverse( this, DependentDemand, dd, dd.HasUserQuantity() )
|
{
|
dd.HasUserQuantity( false );
|
dd.UserQuantity( 0.0 );
|
}
|
}
|
|
traverse( this, NewSupply.ProductInStockingPointInPeriodPlanningLeaf, pispip,
|
not isstartoptimizerrun
|
or not runcontext.IsSmartPlan()
|
or not scope.Contains ( pispip.SmartPlanPrimaryPISPIPInRun() ) )
|
{
|
pispip.UpdateTotalSupplyUser( false, 0.0 );
|
}
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|