| Quintiq file version 2.0 | 
| #parent: #root | 
| Method SetLabel () id:Method_FormInventoryCosts_SetLabel | 
| { | 
|   #keys: '[145730.1.603742122]' | 
|   Body: | 
|   [* | 
|     // Set display label to cater for user locale e.g different decimal points & thousandth separation | 
|     displayText := 'None' | 
|     if( not isnull( MacroPlan ) and MacroPlan.GlobalParameters_MP().HasDefaultInventoryHoldingCost() ) | 
|     { | 
|       converter := RealToString::UserConverter(); | 
|       gp := MacroPlan.GlobalParameters_MP(); | 
|       hasAbsolute := gp.HasAbsoluteValueForInventoryHolding(); | 
|       value := ifexpr( hasAbsolute, | 
|                        gp.DefaultAbsoluteValueForInventoryHolding(), | 
|                        gp.DefaultAnnualInterestRateForInventoryHolding() ); | 
|       valueStr := converter.Convert( value.Round( 2 ) ); | 
|       displayText := valueStr + ' ' + gp.GetDefaultInventoryUoM( hasAbsolute );                  | 
|     } | 
|     LabelDisplayDefaultInventoryHoldingValue.Text( displayText ); | 
|   *] | 
| } |