Quintiq file version 2.0
#parent: #root
Method UpdateUoM () id:Method_DialogCreateEditCampaignType_UpdateUoM
{
  #keys: '[150660.1.751086761]'
  Body:
  [*
    // Handle uom changes
    unit := DataHolderSelectedUnit.Data();
    quantitybased := RadioButtonGroupQuantityDuration.BoundValue().TrimBoth() = GlobalParameters_MP::GetCampaignTransitionsTypeQuantity();
    
    if( quantitybased )
    {
      EditFieldDefaultMinQty.Label( Translations::MP_CampaignType_TransitionType_Minimum( unit ) );
      EditFieldDefaultMaxQty.Label( Translations::MP_CampaignType_TransitionType_Maximum( unit ) );
    }
    
    // Show/hide/enable/disable fields based on checkbox states
    this.UpdateCheckboxState();
  *]
}
