Quintiq file version 2.0
|
#parent: #root
|
StaticMethod CanResetPlan (
|
output String feedback_o,
|
UnitPeriods unitperiods
|
) declarative remote as Boolean
|
{
|
Description: 'Return true if unit period is on planning level.'
|
TextBody:
|
[*
|
// adhiputra Jul-6-2015 (created)
|
|
if( UnitPeriod::CanReset( unitperiods, feedback_o ) )
|
{
|
value := forall( unitperiods, Elements.Unit, unit,
|
not ( unit.IsChildOfAggregatedCapacity() or unit.HasChild() )
|
or unit.HasCapacityTypeAggregation() );
|
|
if( not value )
|
{
|
feedback_o := Translations::MP_UnitPeriod_CanResetPlan_NotPlanningUnit();
|
}
|
}
|
|
return feedback_o = '';
|
*]
|
}
|