Quintiq file version 2.0
#parent: #root
Response OnClick (
  structured[StockingPoint_MP] selection
) id:Response_ListStockingPoint_MenuSmartPlan_OnClick
{
  #keys: '[124808.2.283332675]'
  Body:
  [*
    // Smart plan for PISPIPs in stocking points
    dlg := construct( DialogSmartPlan );
    isviableonestepupstream := false;
    dlg.SmartPlan( selection, this, isviableonestepupstream );
  *]
  CanBindMultiple: false
  DefinitionID => /Responsedef_ListStockingPoint_Menu_OnClick
  Initiator: 'MenuSmartPlan'
  Precondition:
  [*
    return MacroPlan.CanPlan( feedback )
           and ScenarioManager::CanStartSmartPlan( ScenarioManager, SelectionScenario.Data(), true, feedback );
  *]
}
