| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride GetDisplayCost () declarative remote as String | 
| { | 
|   Description: 'Returns cost for the account' | 
|   TextBody: | 
|   [* | 
|     value := '' | 
|     costs := selectset( this, LaneLegCost, c, guard( c.AccountAssignment().Account_MP().IsFinancialAccount(), false ) ); | 
|      | 
|     if( costs.Size() = 0 ) | 
|     { | 
|       value := this.Lane().GetDisplayCost(); | 
|     } | 
|     else if( costs.Size() = 1 ) | 
|     { | 
|       value := Translations::MP_Cost_Display( costs.Element( 0 ).Cost() ); | 
|     } | 
|     else if( costs.Size() > 1 ) | 
|     { | 
|       value := Translations::MP_Process_GetDisplayCost_MultipleCosts(); | 
|     } | 
|     return value; | 
|   *] | 
| } |