Quintiq file version 2.0
#parent: #root
Method EnableDisableButton () id:Method_FormInventoryCosts_EnableDisableButton
{
  #keys: '[145730.1.587642658]'
  Body:
  [*
    // Re-enable/disable delete button after changes were made
    feedback := '';
    hasMP := MacroPlan::HasMacroPlan( MacroPlan, feedback );
    hasDefault :=  hasMP and MacroPlan.GlobalParameters_MP().HasDefaultInventoryHoldingCost();
    
    ButtonDeleteDefaultCost.Enabled( hasDefault, feedback );
    ButtonDefineDefaultCost.Enabled( hasMP, feedback );
  *]
}
