| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride GetViolateHasOverloadTranslationMessage () const declarative remote as String | 
| { | 
|   TextBody: | 
|   [* | 
|     gp := this.MacroPlan().GlobalParameters_MP(); | 
|     message := ifexpr( not this.GetHasAvailableCapacity(),  | 
|                        Translations::MP_UnitPeriod_ViolateHasOpenUnit(), | 
|                        Translations::MP_UnitPeriod_ViolateHasNoOverload( this, gp.NumberOfDecimals(), this.MaximumLoadPercentage() ) ); | 
|      | 
|     // Return overloaded tooltip same as parent  | 
|     if( this.Unit().IsForCapacityAggregation() and this.GetHasAvailableCapacity() ) | 
|     { | 
|       parent := this.ParentOfUnitDimension(); | 
|       message := Translations::MP_UnitPeriod_ViolateHasNoOverload( parent, gp.NumberOfDecimals(), parent.MaximumLoadPercentage() ); | 
|     } | 
|      | 
|     return message; | 
|   *] | 
| } |