Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method MoveNewSupplyQuantity ( 
 | 
  NewSupply sourcesupply, 
 | 
  NewSupply destnewsupply, 
 | 
  ProductInStockingPointInPeriod pispip, 
 | 
  internal[GUIComponent] parent 
 | 
) id:Method_DialogEditOperationNewSupply_MoveNewSupplyQuantity 
 | 
{ 
 | 
  #keys: '[108486.2.578766794]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Move supply quantity 
 | 
    Dialog.Data( sourcesupply ); 
 | 
     
 | 
    qty := sourcesupply.Quantity(); 
 | 
     
 | 
    EditorQuantity.Text( ApplicationLibMacroPlanner.FormatRealToString( qty ) ); 
 | 
    result := Dialog.DoModal( parent ); 
 | 
     
 | 
    if ( result > 0 ) 
 | 
    { 
 | 
      destinationqty := ApplicationLibMacroPlanner.FormatStringToReal( EditorQuantity.Text() ); 
 | 
     
 | 
      // Invoke method to move supply's quantity from source to destination 
 | 
      periodtaskoperation := Dialog.Data().GetPeriodTaskOperation(); 
 | 
     
 | 
      if( not isnull( periodtaskoperation ) ) 
 | 
      { 
 | 
        periodtaskoperation.MoveQuantity( Dialog.Data(), pispip, destinationqty, destnewsupply ); 
 | 
      } 
 | 
    } 
 | 
  *] 
 | 
} 
 |