Quintiq file version 2.0
#parent: SplitterWnd2/MatrixEditorStockingPointCapacities
Response OnEndEdit (
  StockingPointInPeriod cell,
  Real newvalue
) id:Response_SplitterWnd2_MatrixEditorStockingPointCapacities_OnEndEdit
{
  #keys: '[110880.4.1095755493]'
  Body:
  [*
    // Update the max capacity by creating / editing stocking point capacity
    // Pasting from excel is diallowed due to difficulty to distinguish which value belongs to which cell when creating / update this instance
    StockingPointCapacity::CreateOrUpdateForStockingPointInPeriod( cell, newvalue, false );
    this.EndEdit( false );
  *]
  DefinitionID: 'Responsedef_MatrixEditor_OnEndEdit'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return StockingPointCapacity::ValidateInput( feedback,
                                                 sanitycheckfeedback,
                                                 cell.StockingPoint_MP(),
                                                 cell.Start().Date(),
                                                 newvalue,
                                                 cell.StockingPointCapacity(),
                                                 true );
  *]
  UserRequiresReadWrite: true
}
