Quintiq file version 2.0
#parent: #root
Method EnableDisableComponents () id:Method_DialogEditGlobalParameter_EnableDisableComponents
{
  #keys: '[124808.1.1589842188]'
  Body:
  [*
    // Enable / disable components
    hasdefaultinvhold := CheckBoxHasDefaultInventoryHolding.Checked();
    
    // We do not disable the group panel since the checkboxes are located inside the group panel
    LabelAccountForInventoryHolding.Enabled( hasdefaultinvhold );
    StringSelectionAccountForInventoryHolding.Enabled( hasdefaultinvhold );
    RadioButtonGroupHasAbsoluteValueForInventoryHolding.Enabled( hasdefaultinvhold );
    LabelAbsoluteCostForInventoryHolding.Enabled( hasdefaultinvhold );
    EditorDefaultAbsoluteCostForInventoryHolding.Enabled( hasdefaultinvhold );
    LabelAnnualInterestRateForInventoryHolding.Enabled( hasdefaultinvhold );
    EditorDefaultAnnualInterestRateForInventoryHolding.Enabled( hasdefaultinvhold );
  *]
}
