Quintiq file version 2.0
#parent: GanttChartDemandSupplyGroup
Response OnClick (
  structured[ProductInStockingPoint_MP] row
) id:Response_GanttChartDemandSupplyGroup_MenuSmartPlanForGanttChartRows_OnClick_520
{
  #keys: '[124808.2.280033182]'
  Body:
  [*
    // Smart plan for PISPs
    dlg := construct( DialogSmartPlan );
    isviableonestepupstream := true;
    dlg.SmartPlan( row, this, isviableonestepupstream );
  *]
  CanBindMultiple: false
  DefinitionID => /GanttChartDemandSupplyGroup/Responsedef_GanttChartDemandSupplyGroup_Menu_OnClick
  Initiator: 'MenuSmartPlanForGanttChartRows'
  Precondition:
  [*
    return MacroPlan.CanPlan( feedback )
           and ScenarioManager::CanStartSmartPlan( ScenarioManager, SelectionScenario.Data(), true, feedback );
  *]
}
