Quintiq file version 2.0
#parent: MatrixEditorStockingPointsCapacities
Response OnClick (
  structured[StockingPointInPeriod] selection
) id:Response_MatrixEditorStockingPointsCapacities_MenuResetToDefault_OnClick
{
  #keys: '[139394.1.881760188]'
  CanBindMultiple: false
  DefinitionID => /MatrixEditorStockingPointsCapacities/Responsedef_MatrixEditorStockingPointsCapacities_WebMenu_OnClick
  Initiator: 'MenuResetToDefault'
  Precondition:
  [*
    return StockingPointInPeriod::CanEdit( selection, feedback );
  *]
  QuillAction
  {
    Body:
    [*
      // Reset to default stocking point capacity
      StockingPointCapacity::CreateOrUpdateForStockingPointInPeriods( selection,
                                                                      MacroPlan.GlobalParameters_MP().DefaultMaxCapacityForStockingPoint(),
                                                                      false /*thisperiodonwards*/ );
    *]
    GroupServerCalls: false
  }
}
