1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod CanEditActualUnitPeriods ( 
 |    PeriodSpecification_MP periodspecification, 
 |    output String feedback_o 
 |  ) declarative remote as Boolean 
 |  { 
 |    Description: 'Return true if the selected PISPIPS is in the same time unit as the time unit specified in global parameters.' 
 |    TextBody: 
 |    [* 
 |      feedback_o := ''; 
 |       
 |      if( periodspecification.ID() <> periodspecification.MacroPlan().GlobalParameters_MP().PeriodSpecificationForUnitActual() ) 
 |      { 
 |        feedback_o := Translations::MP_ProductInStockingPointInPeriod_CanEditActuals_IsDifferentTimeUnit(); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |