Quintiq file version 2.0
|
#parent: #root
|
Method GetHasValidLink (
|
output Strings feedback_o,
|
output Strings sanitycheckfb
|
) declarative remote as Boolean
|
{
|
Description: 'check if stocking point is linked to a unit'
|
TextBody:
|
[*
|
// desmondt Nov-11-2014 (created)
|
|
isvalid := this.StockingPointUnit( relsize ) > 0 or this.StockingPointInLane( relsize ) > 0;
|
|
if( not isnull( feedback_o ) and not isvalid )
|
{
|
name := MacroPlan::GetSubstituteName( this.Name() );
|
feedback_o.Add( SanityCheckMessage::GetFormattedMessage( Translations::MP_StockingPoint_Instance( name ),
|
Translations::MP_StockingPoint_ViolateHasValidLink() ) );
|
sanitycheckfb.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning() );
|
}
|
|
return isvalid;
|
*]
|
}
|