| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcHasPreviousAndBelongToSameShiftPattern | 
| { | 
|   TextBody: | 
|   [* | 
|     // desmondt May-11-2015 (created) | 
|      | 
|     value := not isnull( this.ShiftPattern() ) | 
|              and not isnull( this.Previous() ) | 
|              and not isnull( this.Previous().astype( UnitPeriodTimeBase ).ShiftPattern() ) | 
|              and this.ShiftPattern() = this.Previous().astype( UnitPeriodTimeBase ).ShiftPattern(); | 
|      | 
|     this.HasPreviousAndBelongToSameShiftPattern( value ); | 
|   *] | 
| } |