| Quintiq file version 2.0 | 
| #parent: #root | 
| DeclarativeReferenceRelation CalcSanityCheckGroupShelfLife | 
| { | 
|   #keys: '1[134266.1.44506354]' | 
|   Expression: | 
|   [* | 
|     value := null( SanityCheckGroupShelfLife ); | 
|      | 
|     if( not this.ProductInStockingPointInPeriodPlanning().IsProductShelfLifeOK() | 
|         and this.ProductInStockingPointInPeriodPlanning().GetIsShownShelfLifeError() ) | 
|     {  | 
|       value := SanityCheckGroupShelfLife::GetSanityCheckGroup( this.ProductInStockingPointInPeriodPlanning().MacroPlan() ); | 
|     } | 
|      | 
|     return value | 
|   *] | 
|   Relation: SanityCheckGroupShelfLife | 
| } |