Quintiq file version 2.0
|
#parent: #root
|
Method GetHasValidUnit (
|
output Strings feedback_o,
|
output Strings sanitycheckfeedback_o
|
) declarative remote as Boolean
|
{
|
Description: 'check if macroplan has at least a unit'
|
TextBody:
|
[*
|
// desmondt Nov-10-2014 (created)
|
|
isvalid := this.Unit( relsize ) > 0;
|
|
if( not isnull( feedback_o ) and not isvalid )
|
{
|
feedback_o.Add( Translations::MP_MacroPlan_ViolateHasValidUnit() );
|
sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue() );
|
}
|
|
return isvalid;
|
*]
|
}
|