Quintiq file version 2.0
#parent: #root
Method EnableDisableMaxQuantity (
  Boolean toggle
) as Boolean id:Method_DialogCreateEditCampaign_EnableDisableMaxQuantity
{
  #keys: '[150660.2.851898589]'
  Body:
  [*
    // Enable disable max quantity edit field
    EditorCampaignMaxQuantity.Enabled( toggle, ifexpr( toggle, '', 'Press enable to input value.' ) );
    EditorCampaignMaxQuantity.Text( ifexpr( toggle,
                                            ApplicationMacroPlanner.FormatRealToString( DataHolderDialogData.Data().MaxQuantity() ),
                                            '0' ) );
    this.ChangeActionLink( EditorCampaignMaxQuantity );
    return toggle;
  *]
}
