Quintiq file version 2.0
#parent: #root
Method FormatLabelWithUOM (
  String labeltext,
  String uom
) as String id:Method_DialogCreateEditUnit_FormatLabelWithUOM
{
  #keys: '[136682.1.213510425]'
  Body:
  [*
    newlabel := labeltext;
    endpos:= labeltext.FindString( "(",0 );
    if ( endpos > -1)
    {
      newlabel := newlabel.SubString( 0, endpos );
    }
    
    newlabel := newlabel + "(" + uom + ")";
    
    return newlabel;
  *]
}
