| Quintiq file version 2.0 | 
| #parent: MatrixEditorTransportCapacities | 
| Response OnClick ( | 
|   structured[UnitPeriodTransportQuantity] selection | 
| ) id:Response_MatrixEditorTransportCapacities_MenuResetToDefaultValue_OnClick | 
| { | 
|   #keys: '[139394.1.338481772]' | 
|   CanBindMultiple: false | 
|   DefinitionID => /MatrixEditorTransportCapacities/Responsedef_MatrixEditorLaneLegs_WebMenu_OnClick | 
|   Initiator: 'MenuResetToDefaultValue' | 
|   Precondition: | 
|   [* | 
|     return UnitPeriod::CanEdit( selection, feedback ); | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       // Reset value to default | 
|       gp := MacroPlan.GlobalParameters_MP(); | 
|       firstEle := selection.Element( 0 ); | 
|       TransportCapacity::CreateOrUpdateForUnitPeriodTransports( selection, | 
|                                                                 Translations::MP_GlobalParameters_Day(), | 
|                                                                 false /*isbatcheditlot*/, | 
|                                                                 firstEle.LotSize(), | 
|                                                                 true /*isbatcheditcapacity*/, | 
|                                                                 gp.DefaultMinCapacityPerDayForUnit(), | 
|                                                                 gp.DefaultMaxCapacityPerDayForUnit(), | 
|                                                                 false /*isbatcheditsecondary*/, | 
|                                                                 firstEle.HasSecondaryCapacity(), | 
|                                                                 firstEle.SecondaryLotSize(), | 
|                                                                 guard( firstEle.TransportCapacity().SecondaryMaximumCapacity(), 0.0 ), | 
|                                                                 guard( firstEle.TransportCapacity().SecondaryMinimumCapacity(), 0.0 ), | 
|                                                                 firstEle.SecondaryUnitOfMeasureName(), | 
|                                                                 false /*this period onwards*/ | 
|                                                               ); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |