| Quintiq file version 2.0 | 
| #parent: #root | 
| Method CreateDefaultStockingPoint ( | 
|   SupplyChainView view | 
| ) | 
| { | 
|   Description: 'Create default stocking point based on input/output stocking point.' | 
|   TextBody: | 
|   [* | 
|     // Adhi Apr-27-2016 (created) | 
|     // Creating default stocking points | 
|     if( this.CreateStockingPointTypeForSynchronization() = Translations::MP_Designer_DialogCreateUnitWizard_DefaultStockingPoint_Combined() ) | 
|     { | 
|       this.CreateDefaultInputOutputStockingPoint( view, this.DefaultGridX() + 3, this.DefaultGridY(), this.Name(), false, true, false ); | 
|     } | 
|      | 
|     if( this.CreateStockingPointTypeForSynchronization() = Translations::MP_Designer_DialogCreateUnitWizard_DefaultStockingPoint_Input() | 
|         or this.CreateStockingPointTypeForSynchronization() = Translations::MP_Designer_DialogCreateUnitWizard_DefaultStockingPoint_Separate() ) | 
|     { | 
|       this.CreateDefaultInputOutputStockingPoint( view, this.DefaultGridX() - 3, this.DefaultGridY(), 'Input SP for ' + this.Name(), true, false, false ); | 
|     } | 
|      | 
|     if( this.CreateStockingPointTypeForSynchronization() = Translations::MP_Designer_DialogCreateUnitWizard_DefaultStockingPoint_Output() | 
|         or this.CreateStockingPointTypeForSynchronization() = Translations::MP_Designer_DialogCreateUnitWizard_DefaultStockingPoint_Separate() ) | 
|     { | 
|       this.CreateDefaultInputOutputStockingPoint( view, this.DefaultGridX() + 3, this.DefaultGridY(), 'Output SP for ' + this.Name(), false, false, false ); | 
|     } | 
|   *] | 
| } |