Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ChangeOwnerStockingPoint ( 
 | 
  StockingPoint_MP stockingPoint 
 | 
) 
 | 
{ 
 | 
  Description: 'Change owner if different' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // If SP is different, update SP cost to new owner 
 | 
    if( stockingPoint <> this.StockingPoint_MP() ) 
 | 
    { 
 | 
      stockingPoint.StockingPointCost( relmove, this ); 
 | 
       
 | 
      // Ensure the account assignment created 
 | 
      this.UpdateCommitLogic(); 
 | 
    } 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |