| Quintiq file version 2.0 | 
| #parent: #root | 
| Method GetHasValidNominal ( | 
|   output Strings feedback_o, | 
|   output Strings sanitycheckfeedback_o | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Check if recipe has valid nominal value' | 
|   TextBody: | 
|   [* | 
|     // Check if recipe has valid nominal value | 
|     isvalid := this.Nominal() = 1; | 
|      | 
|     if( not isnull( feedback_o ) and not isvalid ) | 
|     { | 
|       feedback_o.Add( SanityCheckMessage::GetFormattedMessage( this.GetInstanceText(), | 
|                                                                Translations::MP_Recipe_ViolateHasValidNominal( this.Nominal() ) ) ); | 
|      | 
|       sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue() ); | 
|     } | 
|      | 
|     return isvalid; | 
|   *] | 
| } |