| Quintiq file version 2.0 | 
| #parent: #root | 
| Method GetHasValidPeggedQuantity ( | 
|   output Strings feedback_o, | 
|   output Strings sanitycheckfeedback_o | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'check if the demand has valid pegged quantity' | 
|   TextBody: | 
|   [* | 
|     // desmondt Nov-5-2014 (created) | 
|      | 
|     isvalid := this.HasValidPeggedQuantity(); | 
|      | 
|     if( not isnull( feedback_o ) and not isvalid ) | 
|     { | 
|       feedback_o.Add( SanityCheckMessage::GetFormattedMessage( Translations::MP_Demand_Instance( this, this.GetPISPName(), this.GetPISPIPStart() ), | 
|                                                                Translations::MP_Demand_ViolateHasValidPeggedQuantity( this, this.GetPeggedQuantity() ) ) ); | 
|       sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning() );                                                                | 
|     } | 
|      | 
|     return isvalid; | 
|   *] | 
| } |