Quintiq file version 2.0 
 | 
#parent: List331 
 | 
Response OnClick ( 
 | 
  structured[ProductInStockingPoint_MP] selection 
 | 
) id:Response_List331_MenuKeepSafetyStockDownstream_OnClick 
 | 
{ 
 | 
  #keys: '[138670.0.175012820]' 
 | 
  Body: 
 | 
  [* 
 | 
    // updates the PISP safety stock 
 | 
    pisp := selection.Element( 0 ); 
 | 
    ProductInStockingPoint_MP::UpdateSafetyStockParameters( selection, not pisp.IsSafetyStockKept() ); 
 | 
  *] 
 | 
  DefinitionID => /List331/Responsedef_List331_Menu_OnClick 
 | 
  Initiator: 'MenuKeepSafetyStockDownstream' 
 | 
  Precondition: 
 | 
  [* 
 | 
    pisp := selection.Element( 0 ); 
 | 
    MenuKeepSafetyStockDownstream.SetProperty( 'Checked', pisp.IsSafetyStockKept() ); 
 | 
     
 | 
    return ProductInStockingPoint_MP::GetCanHaveSafetyStockSetting( feedback, selection ); 
 | 
  *] 
 | 
} 
 |