| Quintiq file version 2.0 | 
| #parent: #root | 
| Method Copy ( | 
|   InventorySpecification selection, | 
|   FormInventoryTargets formInventoryTargets | 
| ) id:Method_DialogCreateEditInventoryTarget_Copy | 
| { | 
|   #keys: '[139394.1.940437715]' | 
|   Body: | 
|   [* | 
|     // Copy inventory target | 
|     data := shadow( selection ); | 
|     data.ResetWrapped(); | 
|      | 
|     DataHolderForm.Data( formInventoryTargets ); | 
|      | 
|     DataHolderDialogData.Data( &data ); | 
|     // set stocking point and product to dataholder to be use by OnUserUpdateUI method | 
|     DataHolderProduct.Data( DataHolderDialogData.Data().Product_MP() ); | 
|     DataHolderStockingPoint.Data(DataHolderDialogData.Data().StockingPoint_MP() ); | 
|     this.InitializeComponents( false /*isbatchedit*/ ); | 
|      | 
|     ApplicationMacroPlanner.ShowFormModal( this ); | 
|   *] | 
| } |