Quintiq file version 2.0
#parent: ListPISPGenerateSafetystock
Response OnClick (
  structured[ProductInStockingPoint_MP] selection
) id:Response_ListPISPGenerateSafetystock_MenuPISPGenerateSafetystock_OnClick
{
  #keys: '[139394.1.911587441]'
  CanBindMultiple: false
  DefinitionID => //ListProductInStockingPoints/Responsedef_ListProductInStockingPoints_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuPISPGenerateSafetystock'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( DataHolderActiveScenario.Data(), feedback ) 
           and ProductInStockingPoint_MP::CanRunGenerateSafetyStocks( feedback, MacroPlan, selection, false );
  *]
  QuillAction
  {
    Body:
    [*
      // Generate safety stocks for all pispip
      ProductInStockingPoint_MP::GenerateSafetyStocksBaseOnAlgorithm( selection, false, MacroPlan.GlobalParameters_MP() );
    *]
  }
}
