Quintiq file version 2.0
|
#parent: #root
|
Method Enable (
|
const NewOfflinePlanTable offlinePlanTable
|
)
|
{
|
TextBody:
|
[*
|
// Akari Oct-30-2024 (created)
|
offlinePlanRow := select( offlinePlanTable,NewOfflinePlanRow,row,row.ProductID() = this.ProductInStockingPoint_MP().ProductID() );
|
|
if( not this.IsEnable() ){
|
pispips := selectset( this,ProductInStockingPoint_MP.ProductInStockingPointInPeriod.astype( ProductInStockingPointInPeriodPlanningLeaf ),period,period.Period_MP().StartDate() <= this.LockDate() );
|
traverse( pispips,Elements,element ){
|
if( element.NewSupply( relsize ) = 1 ){
|
traverse( element,NewSupply,newSupply ){
|
|
}
|
}else if( element.NewSupply( relsize ) > 1 ){
|
|
}else if( element.NewSupply( relsize ) = 0 ){
|
unit := element.StockingPointInPeriod().StockingPoint_MP().Unit();
|
operaction := select( unit,Operation,op,true );
|
// PeriodTaskOperation::Create( )
|
}
|
|
|
|
}
|
}
|
*]
|
}
|