Quintiq file version 2.0
|
#parent: #root
|
Function CalcDisplayValue
|
{
|
TextBody:
|
[*
|
value := this.GetDisplayValue();
|
format := "N(Dec(0),Thousands)";
|
displayuom := '';
|
|
if( this.KPI().IsPercentage() )
|
{
|
format := "N(Dec(2))%";
|
}
|
else if( this.KPI().IsAccount() )
|
{
|
displayuom := this.Scenario().BaseCurrency();
|
}
|
else
|
{
|
displayuom := this.UnitOfMeasurement();
|
}
|
|
|
string := value.Format( format )
|
+ " "
|
+ displayuom;
|
|
this.DisplayValue( string );
|
*]
|
}
|