| Quintiq file version 2.0 | 
| #parent: #root | 
| Method HasSameData ( | 
|   UnitAvailability ua | 
| ) as Boolean | 
| { | 
|   Description: | 
|   [* | 
|     Return true if a unit availability is considered equivalent to another one | 
|     Used for cleanup of redundant unit capacities | 
|   *] | 
|   TextBody: | 
|   [* | 
|     // qty1 Mar-10-2017 (created) | 
|      | 
|     value := this.ShiftPatternName() = ua.ShiftPatternName() | 
|              and this.Efficiency() = ua.Efficiency() | 
|              and this.MinimumLoadThreshold() = ua.MinimumLoadThreshold() | 
|              and this.MaximumLoadPercentage() = ua.MaximumLoadPercentage() | 
|              and this.Allocation() = ua.Allocation() | 
|              and this.NrOfUnitsOpen() = ua.NrOfUnitsOpen() | 
|              and this.TimeUnit() = ua.TimeUnit() | 
|              and this.Maintenance() = ua.Maintenance(); | 
|               | 
|     return value; | 
|   *] | 
| } |