Quintiq file version 2.0
|
#parent: #root
|
MethodOverride GetDisplayCost () declarative remote as String
|
{
|
Description: 'Returns display cost'
|
TextBody:
|
[*
|
// ying ying Jan-3-2014 (created)
|
value := ''
|
lanecosts := selectset( this, LaneCost, c, guard( c.AccountAssignment().Account_MP().IsFinancialAccount(), false ) );
|
|
if( lanecosts.Size() = 1 )
|
{
|
value := Translations::MP_Cost_Display( lanecosts.Element( 0 ).Cost() );
|
}
|
else if( lanecosts.Size() > 1 )
|
{
|
value := Translations::MP_Process_GetDisplayCost_MultipleCosts();
|
}
|
|
return value;
|
*]
|
}
|