1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method Update ( 
 |    Product_MP product, 
 |    StockingPoint_MP stockingpoint 
 |  ) 
 |  { 
 |    Description: 'Update PISP node in routing to a product and a stocking point.' 
 |    TextBody: 
 |    [* 
 |      // Adhi Apr-5-2016 (created) 
 |      traverse( this, OperationBOM, bom ) 
 |      { 
 |        // Only assign to a new PISP if it does not exist yet 
 |        existingbom := OperationBOM::FindOperationBOMTypeIndex( bom.OperationID(), 
 |                                                                product.ID(), 
 |                                                                stockingpoint.ID(), 
 |                                                                bom.IsInput() ); 
 |       
 |        if( isnull( existingbom ) ) 
 |        { 
 |          bom.AssignToStockingPoint( stockingpoint ); 
 |          bom.AssignToProduct( product ); 
 |        } 
 |      } 
 |    *] 
 |  } 
 |  
  |