Quintiq file version 2.0
#parent: #root
Method UpdateUoM (
  Unit unit
) id:Method_DialogCreateEditCampaign_UpdateUoM
{
  #keys: '[150660.2.937244296]'
  Body:
  [*
    // Update unit of measure for quantity labels
    quantitybased := RadioButtonGroupQuantityDuration.BoundValue().TrimBoth() = GlobalParameters_MP::GetCampaignTransitionsTypeQuantity();
    if( not isnull( unit ) and quantitybased )
    {
      EditorCampaignMinQuantity.Label( Translations::MP_CampaignType_TransitionType_Minimum( unit ) );
      EditorCampaignMaxQuantity.Label( Translations::MP_CampaignType_TransitionType_Maximum( unit ) );
    }
  *]
}
